| From: | Alexander Korotkov <aekorotkov(at)gmail(dot)com> |
|---|---|
| To: | Kartyshov Ivan <i(dot)kartyshov(at)postgrespro(dot)ru> |
| Cc: | Euler Taveira <euler(at)eulerto(dot)com>, Thomas Munro <thomas(dot)munro(at)gmail(dot)com>, Bharath Rupireddy <bharath(dot)rupireddyforpostgres(at)gmail(dot)com>, Peter Eisentraut <peter(at)eisentraut(dot)org>, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, Dilip Kumar <dilipbalaut(at)gmail(dot)com>, Peter Smith <smithpb2250(at)gmail(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org |
| Subject: | Re: [HACKERS] make async slave to wait for lsn to be replayed |
| Date: | 2024-03-31 02:11:27 |
| Message-ID: | CAPpHfdtmbUOfNWk_ofZyQWd5kztyXhCVmUHYcSr1-JuYO0DyUw@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi!
On Sat, Mar 30, 2024 at 6:14 PM Kartyshov Ivan
<i(dot)kartyshov(at)postgrespro(dot)ru> wrote:
>
> Thank you Alexander for working on patch, may be we should change some
> names:
> 1) test 043_wait_lsn.pl -> to 043_waitlsn.pl like waitlsn.c and
> waitlsn.h
I renamed that to 043_wal_replay_wait.pl to match the name of SQL procedure.
> In waitlsn.c and waitlsn.h variables:
> 2) targret_lsn -> trgLSN like curLSN
I prefer this to match the SQL procedure parameter name.
> 3) lsn -> trgLSN like curLSN
Done.
Also I implemented termination of wal replay waits on standby
promotion (with test).
In the test I change recovery_min_apply_delay to 1s in order to make
the test pass faster.
------
Regards,
Alexander Korotkov
| Attachment | Content-Type | Size |
|---|---|---|
| v16-0001-Implement-pg_wal_replay_wait-stored-procedure.patch | application/octet-stream | 26.0 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Dmitry Koval | 2024-03-31 02:12:19 | Re: Add SPLIT PARTITION/MERGE PARTITIONS commands |
| Previous Message | Thomas Munro | 2024-03-31 01:56:06 | Re: pg_combinebackup --copy-file-range |