pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
Cc: pgsql-hackers@postgresql.org, Heikki Linnakangas <hlinnaka@iki.fi>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: Hiroshi Inoue <inoue@tpf.co.jp>
Cc: pgsql-odbc@postgresql.org
Subject: Re: setLastTid() and currtid()
Date: Thu, 11 Apr 2019 10:52:20 -0700
Message-ID: <20190411175220.pktsk4zyjyjpfibk@alap3.anarazel.de> (raw)
In-Reply-To: <21495.1555003623@sss.pgh.pa.us>
References: <20190326004442.l2jq43inhakuruzn@alap3.anarazel.de>
	<17ef5a8a-71cb-5cbf-1762-dbb71626f84e@dream.email.ne.jp>
	<20190411165214.5jvyldjgdlsxz2ax@alap3.anarazel.de>
	<21495.1555003623@sss.pgh.pa.us>

Hi,

On 2019-04-11 13:27:03 -0400, Tom Lane wrote:
> Andres Freund <andres@anarazel.de> writes:
> > On 2019-03-27 10:01:08 +0900, Inoue, Hiroshi wrote:
> >> The above code remains only for PG servers whose version < 8.2.
> >> Please remove the code around setLastTid().
> 
> > Does anybody else have concerns about removing this interface? Does
> > anybody think we should have a deprecation phase? Should we remove this
> > in 12 or 13?
> 
> I think removing it after feature freeze is not something to do,
> but +1 for nuking it as soon as the v13 branch opens.  Unless
> there's some important reason we need it to be gone in v12?

No, I don't think there really is. They're bogus and possibly a bit
dangerous, but that's not really new.

I was mostly just reminded of this when Heikki asked me to improve the
documentation for heap_get_latest_tid/table_get_latest_tid() - and I was
briefly wondering whether we could just nuke the whole functionality.
But it's still used in nodeTidscan.c:

		/*
		 * For WHERE CURRENT OF, the tuple retrieved from the cursor might
		 * since have been updated; if so, we should fetch the version that is
		 * current according to our snapshot.
		 */
		if (node->tss_isCurrentOf)
			table_get_latest_tid(heapRelation, snapshot, &tid);

If we were able to just get rid of that I think there'd have been a
strong case for removing $subject in v12, to avoid exposing something to
new AMs that we're going to nuke in v13.

The only other reason I can see is that there's literally no use for
them (bogus and only used by pgodbc when targeting <= 8.2), and that
they cost a bit of performance and are the only reason heapam.h is still
included in nodeModifyTable.h (hurting my pride).   But that's probably
not sufficient reason.

Greetings,

Andres Freund





view thread (11+ messages)  latest in thread

Message-ID: <20190411175220.pktsk4zyjyjpfibk@alap3.anarazel.de>
Permalink:  ../20190411175220.pktsk4zyjyjpfibk@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20190411175220.pktsk4zyjyjpfibk@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: andres@anarazel.de, tgl@sss.pgh.pa.us, h-inoue@dream.email.ne.jp, hlinnaka@iki.fi, michael.paquier@gmail.com, inoue@tpf.co.jp
  Subject: Re: setLastTid() and currtid()
  In-Reply-To: <20190411175220.pktsk4zyjyjpfibk@alap3.anarazel.de>
  References: <20190326004442.l2jq43inhakuruzn@alap3.anarazel.de> <17ef5a8a-71cb-5cbf-1762-dbb71626f84e@dream.email.ne.jp> <20190411165214.5jvyldjgdlsxz2ax@alap3.anarazel.de> <21495.1555003623@sss.pgh.pa.us> <20190411175220.pktsk4zyjyjpfibk@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