Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit feadce8

Browse files
committed
bugfix in our_intorel_startup
1 parent 81bfd7f commit feadce8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pg_pageprep.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1736,7 +1736,8 @@ our_intorel_startup(DestReceiver *self, int operation, TupleDesc typeinfo)
17361736
foreach(lc, into->options)
17371737
{
17381738
def = (DefElem *) lfirst(lc);
1739-
if (strcmp(def->defnamespace, "toast") == 0)
1739+
if (def->defnamespace &&
1740+
strcmp(def->defnamespace, "toast") == 0)
17401741
count++;
17411742
}
17421743

0 commit comments

Comments
 (0)