agora inbox for [email protected]
help / color / mirror / Atom feedFrom: Japin Li <[email protected]>
Subject: [PATCH v5 1/5] Export textarray_to_stringlist
Date: Fri, 5 Feb 2021 20:49:40 +0800
---
src/backend/catalog/pg_subscription.c | 3 +--
src/include/catalog/pg_subscription.h | 2 ++
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/backend/catalog/pg_subscription.c b/src/backend/catalog/pg_subscription.c
index c32fc8137d..e01c22c604 100644
--- a/src/backend/catalog/pg_subscription.c
+++ b/src/backend/catalog/pg_subscription.c
@@ -34,7 +34,6 @@
#include "utils/rel.h"
#include "utils/syscache.h"
-static List *textarray_to_stringlist(ArrayType *textarray);
/*
* Fetch the subscription from the syscache.
@@ -210,7 +209,7 @@ get_subscription_name(Oid subid, bool missing_ok)
*
* Note: the resulting list of strings is pallocated here.
*/
-static List *
+List *
textarray_to_stringlist(ArrayType *textarray)
{
Datum *elems;
diff --git a/src/include/catalog/pg_subscription.h b/src/include/catalog/pg_subscription.h
index a5d6efdf20..3fc558c7c5 100644
--- a/src/include/catalog/pg_subscription.h
+++ b/src/include/catalog/pg_subscription.h
@@ -21,6 +21,7 @@
#include "catalog/pg_subscription_d.h"
#include "nodes/pg_list.h"
+#include "utils/array.h"
/* ----------------
* pg_subscription definition. cpp turns this into
@@ -101,6 +102,7 @@ extern Subscription *GetSubscription(Oid subid, bool missing_ok);
extern void FreeSubscription(Subscription *sub);
extern Oid get_subscription_oid(const char *subname, bool missing_ok);
extern char *get_subscription_name(Oid subid, bool missing_ok);
+extern List *textarray_to_stringlist(ArrayType *textarray);
extern int CountDBSubscriptions(Oid dbid);
--
2.25.1
--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment;
filename=v5-0002-Introduce-a-new-syntax-to-add-drop-publications.patch
view thread (45+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: [PATCH v5 1/5] Export textarray_to_stringlist
In-Reply-To: <no-message-id-1870863@localhost>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox