aboutsummaryrefslogtreecommitdiff
path: root/src/bin/psql/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/psql/common.c')
-rw-r--r--src/bin/psql/common.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/bin/psql/common.c b/src/bin/psql/common.c
index abb108265dd..5ab2c230363 100644
--- a/src/bin/psql/common.c
+++ b/src/bin/psql/common.c
@@ -1574,3 +1574,15 @@ expand_tilde(char **filename)
return *filename;
}
+
+/*
+ * Recognized connection string contains a "=" in it.
+ *
+ * Must be consistent with conninfo_parse: anything for which this
+ * returns true should at least look like it's parseable by that routine.
+ */
+bool
+recognized_connection_string(const char *connstr)
+{
+ return strchr(connstr, '=') != NULL;
+}