Re: missing "SPI_finish" that isn't missing - Mailing list pgsql-hackers

From Tom Lane
Subject Re: missing "SPI_finish" that isn't missing
Date
Msg-id 30293.1451341461@sss.pgh.pa.us
Whole thread Raw
In response to Re: missing "SPI_finish" that isn't missing  (Chapman Flack <chap@anastigmatix.net>)
List pgsql-hackers
Chapman Flack <chap@anastigmatix.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



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Avoid endless futile table locks in vacuuming.
Next
From: Fabien COELHO
Date:
Subject: Re: pgbench stats per script & other stuff