File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2875,15 +2875,12 @@ get_connect_string(const char *servername)
2875
2875
ForeignServer * foreign_server = NULL ;
2876
2876
UserMapping * user_mapping ;
2877
2877
ListCell * cell ;
2878
- StringInfoData buf ;
2879
2878
ForeignDataWrapper * fdw ;
2880
2879
AclResult aclresult ;
2881
2880
char * srvname ;
2882
2881
2883
2882
static const PQconninfoOption * options = NULL ;
2884
2883
2885
- initStringInfo (& buf );
2886
-
2887
2884
/*
2888
2885
* Get list of valid libpq options.
2889
2886
*
@@ -2908,6 +2905,7 @@ get_connect_string(const char *servername)
2908
2905
2909
2906
if (foreign_server )
2910
2907
{
2908
+ StringInfoData buf ;
2911
2909
Oid serverid = foreign_server -> serverid ;
2912
2910
Oid fdwid = foreign_server -> fdwid ;
2913
2911
Oid userid = GetUserId ();
@@ -2920,6 +2918,8 @@ get_connect_string(const char *servername)
2920
2918
if (aclresult != ACLCHECK_OK )
2921
2919
aclcheck_error (aclresult , OBJECT_FOREIGN_SERVER , foreign_server -> servername );
2922
2920
2921
+ initStringInfo (& buf );
2922
+
2923
2923
/*
2924
2924
* First append hardcoded options needed for SCRAM pass-through, so if
2925
2925
* the user overwrites these options we can ereport on
You can’t perform that action at this time.
0 commit comments