pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Fujii Masao <masao.fujii@oss.nttdata.com>
Cc: Alexey Kondratov <a.kondratov@postgrespro.ru>
Cc: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Cc: a.akenteva@postgrespro.ru
Cc: a.korotkov@postgrespro.ru
Cc: i.kartyshov@postgrespro.ru
Cc: amit.kapila16@gmail.com
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: [HACKERS] make async slave to wait for lsn to be replayed
Date: Fri, 10 Apr 2020 17:17:10 -0400
Message-ID: <2024.1586553430@sss.pgh.pa.us> (raw)
In-Reply-To: <20200410210641.5cub2minmnciydvv@alap3.anarazel.de>
References: <20200408.100945.375702947246835193.horikyota.ntt@gmail.com>
	<d3ff2e363af60b345f82396992595a03@postgrespro.ru>
	<13716.1586378146@sss.pgh.pa.us>
	<20200409.161107.580344062273684114.horikyota.ntt@gmail.com>
	<880834ee-4b18-6d5d-9dae-6520c5eb2bef@oss.nttdata.com>
	<27171.1586439221@sss.pgh.pa.us>
	<a8bff0350a27e0a87a6eaf0905d6737f@postgrespro.ru>
	<759206c1-265f-97da-d135-fcecbced646b@oss.nttdata.com>
	<20200410193301.2qsbuoieppkst7xj@alap3.anarazel.de>
	<32218.1586550579@sss.pgh.pa.us>
	<20200410210641.5cub2minmnciydvv@alap3.anarazel.de>

Andres Freund <andres@anarazel.de> writes:
> On 2020-04-10 16:29:39 -0400, Tom Lane wrote:
>> Good point, but we could address that by making it a procedure no?

> Probably. Don't think we have great infrastructure for builtin
> procedures yet though? We'd presumably not want to use plpgsql.

Don't think anyone's tried yet.  It's not instantly clear that the
amount of code needed would be more than comes along with new
syntax, though.

> ISTM that we can make it BEGIN AFTER 'xx/xx' or such, which'd not
> require any keywords, it'd be easier to use than a procedure.

I still don't see a good argument for tying this to BEGIN.  If it
has to be a statement, why not a standalone statement?

(I also have a lurking suspicion that this shouldn't be SQL at all
but part of the replication command set.)

			regards, tom lane





view thread (216+ messages)  latest in thread

Message-ID: <2024.1586553430@sss.pgh.pa.us>
Permalink:  ../2024.1586553430@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2024.1586553430@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andres@anarazel.de, masao.fujii@oss.nttdata.com, a.kondratov@postgrespro.ru, horikyota.ntt@gmail.com, a.akenteva@postgrespro.ru, a.korotkov@postgrespro.ru, i.kartyshov@postgrespro.ru, amit.kapila16@gmail.com, pgsql-hackers@lists.postgresql.org
  Subject: Re: [HACKERS] make async slave to wait for lsn to be replayed
  In-Reply-To: <2024.1586553430@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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