Re: [PATCH] Add pg_get_subscription_ddl() function - Mailing list pgsql-hackers

From Álvaro Herrera
Subject Re: [PATCH] Add pg_get_subscription_ddl() function
Date
Msg-id 202511121044.pw34gsirtu2s@alvherre.pgsql
Whole thread Raw
In response to Re: [PATCH] Add pg_get_subscription_ddl() function  (Vaibhav Dalvi <vaibhav.dalvi@enterprisedb.com>)
List pgsql-hackers
If build_subscription_ddl_string is "internal" as its comment claims,
why is it declared extern in ruleutils.h?  I think it should be a static
function instead.  If you want to make it extern, it should live in
src/backend/catalog/pg_subscription.c and its prototype in
src/include/catalog/pg_subscription.h.  And if you do move it to
pg_subscription.c (but I don't necessarily agree with that), then you
don't need a third copy of textarray_to_stringlist.

-- 
Álvaro Herrera        Breisgau, Deutschland  —  https://www.EnterpriseDB.com/
"Find a bug in a program, and fix it, and the program will work today.
Show the program how to find and fix a bug, and the program
will work forever" (Oliver Silfridge)



pgsql-hackers by date:

Previous
From: Thomas Munro
Date:
Subject: Re: Trying out read streams in pgvector (an extension)
Next
From: Yugo Nagata
Date:
Subject: Re: Make PQgetResult() not return NULL on out-of-memory error