Skip to content

Commit e4b05a1

Browse files
committed
pathman: get_extension_schema() fixed
1 parent 8de9ace commit e4b05a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/pathman/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ get_extension_schema()
4949
bool isnull;
5050

5151
ret = SPI_exec("SELECT extnamespace::regnamespace::text FROM pg_extension WHERE extname = 'pathman'", 0);
52-
if (ret > 0 && SPI_tuptable != NULL)
52+
if (ret > 0 && SPI_tuptable != NULL && SPI_processed > 0)
5353
{
5454
TupleDesc tupdesc = SPI_tuptable->tupdesc;
5555
SPITupleTable *tuptable = SPI_tuptable;

0 commit comments

Comments
 (0)