From: | "Erik Rijkers" <er(at)xs4all(dot)nl> |
---|---|
To: | "Thom Brown" <thom(at)linux(dot)com> |
Cc: | "Andres Freund" <andres(at)2ndquadrant(dot)com>, "PostgreSQL-development" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Changeset Extraction v7.5 |
Date: | 2014-02-07 21:28:02 |
Message-ID: | af3e2b70ee274187e6650dd4cd77c7a1.squirrel@webmail.xs4all.nl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Fri, February 7, 2014 22:09, Thom Brown wrote:
>>The example also shows output from pg_decoding_slot_get_changes after
>>inserting 2 rows, but when I run the same example, there are no rows
FWIW, works for me:
testdb=# SELECT * FROM pg_decoding_slot_get_changes('regression_slot', 'now', 'include-xids', '0');
location | xid | data
----------+-----+------
(0 rows)
testdb=# BEGIN; INSERT INTO data(data) VALUES('1'); INSERT INTO data(data) VALUES('1'); COMMIT;
testdb=# SELECT * FROM pg_decoding_slot_get_changes('regression_slot', 'now', 'include-xids', '0');
location | xid | data
-----------+------+------------------------------------------------
0/2B81ED0 | 1973 | BEGIN
0/2B823A8 | 1973 | table "data": INSERT: id[int4]:14 data[text]:1
0/2B823A8 | 1973 | table "data": INSERT: id[int4]:15 data[text]:1
0/2B823A8 | 1973 | COMMIT
(4 rows)
testdb=# SELECT * FROM pg_decoding_slot_get_changes('regression_slot', 'now', 'include-xids', '0');
location | xid | data
----------+-----+------
(0 rows)
( output of "SELECT * FROM pg_replication_slots;" is, indeed, out-of-date.)
From | Date | Subject | |
---|---|---|---|
Next Message | Thom Brown | 2014-02-07 21:29:35 | Re: Changeset Extraction v7.5 |
Previous Message | Jeremy Harris | 2014-02-07 21:28:00 | Re: Minor performance improvement in transition to external sort |