pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andrey Klychkov <aaklychkov@mail.ru>
Cc: Victor Yegorov <vyegorov@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Subject: Re: Alter index rename concurrently to
Date: Thu, 2 Aug 2018 13:44:41 -0700
Message-ID: <20180802204441.4dhfszzfunhyoigp@alap3.anarazel.de> (raw)
In-Reply-To: <CA+Tgmoa=6M5tdXDgLM3YxXF6ogGy=QOJ8zj6oogetp=zCE+3hQ@mail.gmail.com>
References: <6cf6b35f-b730-60fc-bab7-82699dca59ed@2ndquadrant.com>
	<CA+TgmobtmFT5g-0dA=vEFFtogjRAuDHcYPw+qEdou5dZPnF=pg@mail.gmail.com>
	<c3d9a44c-2ca1-6726-ad03-ed9c37cc7c29@2ndquadrant.com>
	<10678.1533072318@sss.pgh.pa.us>
	<4aadd527-9986-36bd-978c-2300a95e7aec@2ndquadrant.com>
	<CA+TgmoZVYSVqNuuw3tzUWcTNaeBj_XvAB8F9+bsesw-NKj=SKA@mail.gmail.com>
	<20180801193616.gi7mfs4kn5kggamf@alap3.anarazel.de>
	<CA+TgmoZ6vjMjQmzbpQkLBB9iY03SBx+gWHpsgwpyjzQAoZ3nrw@mail.gmail.com>
	<20180802200251.ekgtnkqpgfsmfmdf@alap3.anarazel.de>
	<CA+Tgmoa=6M5tdXDgLM3YxXF6ogGy=QOJ8zj6oogetp=zCE+3hQ@mail.gmail.com>

Hi,

On 2018-08-02 16:30:42 -0400, Robert Haas wrote:
> With this change, we'd be able to say that new statements will
> definitely see the results of concurrent DDL.

I don't think it really gets you that far. Because you're suggesting to
do it at the parse stage, you suddenly have issues with prepared
statements. Some client libraries, and a lot more frameworks,
automatically use prepared statements when they see the same query text
multiple times.  And this'll not improve anything on that.

ISTM, if you want to increase consistency in this area, you've to go
further. E.g. processing invalidations in StartTransactionCommand() in
all states, which'd give you a lot more consistency.

Greetings,

Andres Freund




view thread (31+ messages)  latest in thread

Message-ID: <20180802204441.4dhfszzfunhyoigp@alap3.anarazel.de>
Permalink:  ../20180802204441.4dhfszzfunhyoigp@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20180802204441.4dhfszzfunhyoigp@alap3.anarazel.de

 · 

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: andres@anarazel.de, robertmhaas@gmail.com, peter.eisentraut@2ndquadrant.com, tgl@sss.pgh.pa.us, aaklychkov@mail.ru, vyegorov@gmail.com
  Subject: Re: Alter index rename concurrently to
  In-Reply-To: <20180802204441.4dhfszzfunhyoigp@alap3.anarazel.de>

* 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