pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: tableam: Add helper for indexes to check if a corresponding tabl
5+ messages / 2 participants
[nested] [flat]

Commits from this thread:
  2019-03-26 2ac1b2b175  Remove heap_hot_search().
* pgsql: tableam: Add helper for indexes to check if a corresponding tabl
@ 2019-03-26 00:34  Andres Freund <andres@anarazel.de>
  0 siblings, 1 reply; 5+ messages in thread

From: Andres Freund @ 2019-03-26 00:34 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

tableam: Add helper for indexes to check if a corresponding table tuples exist.

This is, likely exclusively, useful to verify that conflicts detected
in a unique index are with live tuples, rather than dead ones.

Author: Andres Freund
Discussion: https://postgr.es/m/20180703070645.wchpu5muyto5n647@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/71bdc99d0d7c3b2d73fa04fb2ff80870ce1305f7

Modified Files
--------------
src/backend/access/nbtree/nbtinsert.c | 17 ++++++++++-------
src/backend/access/nbtree/nbtsort.c   |  2 +-
src/backend/access/table/tableam.c    | 34 ++++++++++++++++++++++++++++++++++
src/include/access/tableam.h          | 25 +++++++++++++++++++------
4 files changed, 64 insertions(+), 14 deletions(-)



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: pgsql: tableam: Add helper for indexes to check if a corresponding tabl
@ 2019-03-26 00:47  Peter Geoghegan <pg@bowt.ie>
  parent: Andres Freund <andres@anarazel.de>
  0 siblings, 1 reply; 5+ messages in thread

From: Peter Geoghegan @ 2019-03-26 00:47 UTC (permalink / raw)
  To: Andres Freund <andres@anarazel.de>; +Cc: pgsql-committers <pgsql-committers@lists.postgresql.org>

On Mon, Mar 25, 2019 at 5:34 PM Andres Freund <andres@anarazel.de> wrote:
> tableam: Add helper for indexes to check if a corresponding table tuples exist.
>
> This is, likely exclusively, useful to verify that conflicts detected
> in a unique index are with live tuples, rather than dead ones.

Any reason why you didn't remove the heap_hot_search() wrapper
function entirely?

-- 
Peter Geoghegan




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: pgsql: tableam: Add helper for indexes to check if a corresponding tabl
@ 2019-03-26 01:00  Andres Freund <andres@anarazel.de>
  parent: Peter Geoghegan <pg@bowt.ie>
  0 siblings, 1 reply; 5+ messages in thread

From: Andres Freund @ 2019-03-26 01:00 UTC (permalink / raw)
  To: Peter Geoghegan <pg@bowt.ie>; +Cc: pgsql-committers <pgsql-committers@lists.postgresql.org>

Hi,

On 2019-03-25 17:47:17 -0700, Peter Geoghegan wrote:
> On Mon, Mar 25, 2019 at 5:34 PM Andres Freund <andres@anarazel.de> wrote:
> > tableam: Add helper for indexes to check if a corresponding table tuples exist.
> >
> > This is, likely exclusively, useful to verify that conflicts detected
> > in a unique index are with live tuples, rather than dead ones.
> 
> Any reason why you didn't remove the heap_hot_search() wrapper
> function entirely?

Hm. Fair question.  I guess if there's any potential external users of
it, they'd likely need to make v12 adjustments anyway?

Greetings,

Andres Freund




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: pgsql: tableam: Add helper for indexes to check if a corresponding tabl
@ 2019-03-26 01:02  Peter Geoghegan <pg@bowt.ie>
  parent: Andres Freund <andres@anarazel.de>
  0 siblings, 1 reply; 5+ messages in thread

From: Peter Geoghegan @ 2019-03-26 01:02 UTC (permalink / raw)
  To: Andres Freund <andres@anarazel.de>; +Cc: pgsql-committers <pgsql-committers@lists.postgresql.org>

On Mon, Mar 25, 2019 at 6:00 PM Andres Freund <andres@anarazel.de> wrote:
> Hm. Fair question.  I guess if there's any potential external users of
> it, they'd likely need to make v12 adjustments anyway?

I'm not sure that they'd need to make adjustments. I think it's
unlikely that there are any external users, though.

-- 
Peter Geoghegan




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: pgsql: tableam: Add helper for indexes to check if a corresponding tabl
@ 2019-03-26 01:58  Andres Freund <andres@anarazel.de>
  parent: Peter Geoghegan <pg@bowt.ie>
  0 siblings, 0 replies; 5+ messages in thread

From: Andres Freund @ 2019-03-26 01:58 UTC (permalink / raw)
  To: Peter Geoghegan <pg@bowt.ie>; +Cc: pgsql-committers <pgsql-committers@lists.postgresql.org>

Hi,

On 2019-03-25 18:02:59 -0700, Peter Geoghegan wrote:
> On Mon, Mar 25, 2019 at 6:00 PM Andres Freund <andres@anarazel.de> wrote:
> > Hm. Fair question.  I guess if there's any potential external users of
> > it, they'd likely need to make v12 adjustments anyway?
> 
> I'm not sure that they'd need to make adjustments.

Yea, the probably do:
https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=c2fe139c201c48f1133e9fbea2dd99b8e...
etc

> I think it's unlikely that there are any external users, though.

Yea, agreed. I'll remove it.

- Andres




^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2019-03-26 01:58 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-03-26 00:34 pgsql: tableam: Add helper for indexes to check if a corresponding tabl Andres Freund <andres@anarazel.de>
2019-03-26 00:47 ` Peter Geoghegan <pg@bowt.ie>
2019-03-26 01:00   ` Andres Freund <andres@anarazel.de>
2019-03-26 01:02     ` Peter Geoghegan <pg@bowt.ie>
2019-03-26 01:58       ` Andres Freund <andres@anarazel.de>

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