We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent25a26a7 commit14f214dCopy full SHA for 14f214d
src/bin/pg_dump/pg_restore.c
@@ -132,9 +132,9 @@ int main(int argc, char **argv)
132
progname=*argv;
133
134
#ifdefHAVE_GETOPT_LONG
135
-while ((c=getopt_long(argc,argv,"acCd:f:F:h:i:lNoOp:rRsS:t:T:uU:vx",cmdopts,NULL))!=EOF)
+while ((c=getopt_long(argc,argv,"acCd:f:F:h:i:lNoOp:P:rRsS:t:T:uU:vx",cmdopts,NULL))!=EOF)
136
#else
137
-while ((c=getopt(argc,argv,"acCd:f:F:h:i:lNoOp:rRsS:t:T:uU:vx"))!=-1)
+while ((c=getopt(argc,argv,"acCd:f:F:h:i:lNoOp:P:rRsS:t:T:uU:vx"))!=-1)
138
#endif
139
{
140
switch (c)
@@ -192,7 +192,7 @@ int main(int argc, char **argv)
192
case'P':/* Function */
193
opts->selTypes=1;
194
opts->selFunction=1;
195
-opts->functionNames=_cleanupName(optarg);
+opts->functionNames=optarg ?strdup(optarg) :NULL;
196
break;
197
case'I':/* Index */
198