pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedplproxy - plproxy: Make scanner accept dot as standalone symbol
2+ messages / 2 participants
[nested] [flat]
* plproxy - plproxy: Make scanner accept dot as standalone symbol
@ 2009-06-29 13:37 User Mkz <mkz@pgfoundry.org>
0 siblings, 0 replies; 2+ messages in thread
From: mkz@pgfoundry.org @ 2009-06-29 13:37 UTC (permalink / raw)
To: pgsql-committers
Log Message:
-----------
Make scanner accept dot as standalone symbol
Currently PL/Proxy fails to parse following query:
select (ret_numtuple(1)).num, (ret_numtuple(1)).name;
The fix is to add "." to the SQLSYM rule in the lexer. This should be OK
because an identifier chain will always be longer than a single dot, so flex
will prefer it over parsing the single dot.
Patch by Peter Eisentraut
Modified Files:
--------------
plproxy/expected:
plproxy_select.out (r1.3 -> r1.4)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/plproxy/plproxy/expected/plproxy_select.out?r1=1.3&r...)
plproxy/sql:
plproxy_select.sql (r1.2 -> r1.3)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/plproxy/plproxy/sql/plproxy_select.sql?r1=1.2&r2=1.3)
plproxy/src:
scanner.l (r1.14 -> r1.15)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/plproxy/plproxy/src/scanner.l?r1=1.14&r2=1.15)
^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Introduce a new GUC 'standby_slot_names'.
@ 2024-03-08 02:53 Amit Kapila <akapila@postgresql.org>
0 siblings, 0 replies; 2+ messages in thread
From: Amit Kapila @ 2024-03-08 02:53 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Introduce a new GUC 'standby_slot_names'.
This patch provides a way to ensure that physical standbys that are
potential failover candidates have received and flushed changes before
the primary server making them visible to subscribers. Doing so guarantees
that the promoted standby server is not lagging behind the subscribers
when a failover is necessary.
The logical walsender now guarantees that all local changes are sent and
flushed to the standby servers corresponding to the replication slots
specified in 'standby_slot_names' before sending those changes to the
subscriber.
Additionally, the SQL functions pg_logical_slot_get_changes,
pg_logical_slot_peek_changes and pg_replication_slot_advance are modified
to ensure that they process changes for failover slots only after physical
slots specified in 'standby_slot_names' have confirmed WAL receipt for those.
Author: Hou Zhijie and Shveta Malik
Reviewed-by: Masahiko Sawada, Peter Smith, Bertrand Drouvot, Ajin Cherian, Nisha Moond, Amit Kapila
Discussion: https://postgr.es/m/514f6f2f-6833-4539-39f1-96cd1e011f23@enterprisedb.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/bf279ddd1c28ce0251446ee90043a4cb96e5db0f
Modified Files
--------------
doc/src/sgml/config.sgml | 39 ++
doc/src/sgml/func.sgml | 16 +-
doc/src/sgml/logicaldecoding.sgml | 12 +
src/backend/replication/logical/logicalfuncs.c | 12 +
src/backend/replication/logical/slotsync.c | 11 +
src/backend/replication/slot.c | 403 ++++++++++++++++++++-
src/backend/replication/slotfuncs.c | 12 +
src/backend/replication/walsender.c | 159 +++++++-
src/backend/utils/activity/wait_event_names.txt | 1 +
src/backend/utils/misc/guc_tables.c | 14 +
src/backend/utils/misc/postgresql.conf.sample | 2 +
src/include/replication/slot.h | 5 +
src/include/replication/walsender.h | 1 +
src/include/replication/walsender_private.h | 7 +
src/include/utils/guc_hooks.h | 3 +
src/test/recovery/t/006_logical_decoding.pl | 3 +-
.../recovery/t/040_standby_failover_slots_sync.pl | 244 ++++++++++++-
src/tools/pgindent/typedefs.list | 1 +
18 files changed, 918 insertions(+), 27 deletions(-)
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2024-03-08 02:53 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2009-06-29 13:37 plproxy - plproxy: Make scanner accept dot as standalone symbol User Mkz <mkz@pgfoundry.org>
2024-03-08 02:53 pgsql: Introduce a new GUC 'standby_slot_names'. Amit Kapila <akapila@postgresql.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox