postgresql/src/include
Peter Eisentraut a2141c42f9 Tweak publication fetching in psql
Viewing a table with \d in psql also shows the publications at table is
in.  If a publication is concurrently dropped, this shows an error,
because the view pg_publication_tables internally uses
pg_get_publication_tables(), which uses a catalog snapshot.  This can be
particularly annoying if a for-all-tables publication is concurrently
dropped.

To avoid that, write the query in psql differently.  Expose the function
pg_relation_is_publishable() to SQL and write the query using that.
That still has a risk of being affected by concurrent catalog changes,
but in this case it would be a table drop that causes problems, and then
the psql \d command wouldn't be interesting anymore anyway.

Reported-by: Tom Lane <tgl@sss.pgh.pa.us>
2017-06-20 12:35:02 -04:00
..
access Post-PG 10 beta1 pgindent run 2017-05-17 16:31:56 -04:00
bootstrap Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
catalog Tweak publication fetching in psql 2017-06-20 12:35:02 -04:00
commands Disallow CREATE INDEX if table is already in use in current session. 2017-06-04 12:02:41 -04:00
common Post-PG 10 beta1 pgindent run 2017-05-17 16:31:56 -04:00
datatype Consistently declare timestamp variables as TimestampTz. 2017-02-23 15:57:08 -05:00
executor Post-PG 10 beta1 pgindent run 2017-05-17 16:31:56 -04:00
fe_utils Allow psql variable substitution to occur in backtick command strings. 2017-04-01 21:44:54 -04:00
foreign Allow custom and foreign scans to have shutdown callbacks. 2017-02-26 13:41:12 +05:30
lib Fix typos in comments 2017-06-17 10:17:28 +02:00
libpq Post-PG 10 beta1 pgindent run 2017-05-17 16:31:56 -04:00
mb Post-PG 10 beta1 pgindent run 2017-05-17 16:31:56 -04:00
nodes Fix typos in comments 2017-06-17 10:17:28 +02:00
optimizer Teach predtest.c about CHECK clauses to fix partitioning bugs. 2017-06-14 13:13:11 -04:00
parser Disallow set-returning functions inside CASE or COALESCE. 2017-06-13 23:46:39 -04:00
port Remove symbol WIN32_ONLY_COMPILER 2017-04-11 15:22:21 +02:00
portability Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
postmaster Add an Assert() to max_parallel_workers enforcement. 2017-04-11 13:03:44 -04:00
regex Document intentional violations of header inclusion policy. 2017-03-08 17:01:13 -05:00
replication Fix leaking of small spilled subtransactions during logical decoding. 2017-06-18 19:12:56 -07:00
rewrite Remove deprecated COMMENT ON RULE syntax 2017-02-23 08:19:52 -05:00
snowball Document intentional violations of header inclusion policy. 2017-03-08 17:01:13 -05:00
statistics Rename function for consistency 2017-06-15 11:44:33 -04:00
storage Don't force-assign transaction id when exporting a snapshot. 2017-06-14 11:57:21 -07:00
tcop Post-PG 10 beta1 pgindent run 2017-05-17 16:31:56 -04:00
tsearch Full Text Search support for json and jsonb 2017-03-31 14:26:03 -04:00
utils Sort syscache identifiers into alphabetical order. 2017-05-30 18:47:13 -04:00
.gitignore Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
c.h Post-PG 10 beta1 pgindent run 2017-05-17 16:31:56 -04:00
fmgr.h Avoid passing function pointers across process boundaries. 2017-04-14 23:50:16 -04:00
funcapi.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
getaddrinfo.h Remove symbol WIN32_ONLY_COMPILER 2017-04-11 15:22:21 +02:00
getopt_long.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
Makefile Add statistics subdirectory to Makefile. 2017-06-08 11:29:50 -04:00
miscadmin.h Unify SIGHUP handling between normal and walsender backends. 2017-06-05 19:18:16 -07:00
pg_config.h.in Revert "Use pselect(2) not select(2), if available, to wait in postmaster's loop." 2017-04-24 18:29:03 -04:00
pg_config.h.win32 Define HAVE_UCOL_STRCOLLUTF8 on Windows 2017-06-17 00:17:10 -04:00
pg_config_ext.h.in Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
pg_config_ext.h.win32 Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
pg_config_manual.h Fix default minimum value for descending sequences 2017-01-23 14:00:58 -05:00
pg_getopt.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
pg_trace.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
pgstat.h Add ProcArrayGroupUpdate wait event. 2017-04-07 13:41:47 -04:00
pgtar.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
pgtime.h Fix incorrect comment: pgtime's tm_mon is 1-based, not 0-based. 2017-01-24 09:36:17 -05:00
port.h Run the postmaster's signal handlers without SA_RESTART. 2017-04-24 13:00:30 -04:00
postgres.h Avoid -Wconversion warnings from direct use of GET_n_BYTES macros. 2017-05-31 11:27:21 -04:00
postgres_ext.h Move atooid() definition to a central place 2017-03-01 11:55:28 -05:00
postgres_fe.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
rusagestub.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
windowapi.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00