Re: missing "SPI_finish" that isn't missing

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Chapman Flack <chap(at)anastigmatix(dot)net>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: missing "SPI_finish" that isn't missing
Date: 2015-12-28 22:24:21
Message-ID: 30293.1451341461@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Chapman Flack <chap(at)anastigmatix(dot)net> writes:
> Is there a particular, reasonably tidy idiom that has emerged as the usual,
> customary approach to a task like this?

You could construct a RangeVar node and then use RangeVarGetRelid,
but I dunno that that's really any cleaner than inquiring about it
using the syscaches. The syscache APIs are really quite unlikely
to change in any meaningful way, if only because there's too much
code depending on them.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Fabien COELHO 2015-12-28 22:29:02 Re: pgbench stats per script & other stuff
Previous Message Tom Lane 2015-12-28 22:12:21 Re: Avoid endless futile table locks in vacuuming.