Re: Change RangeVarGetRelidExtended() to take flags argument? - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Change RangeVarGetRelidExtended() to take flags argument?
Date
Msg-id 20180306011749.GF1878@paquier.xyz
Whole thread Raw
In response to Re: Change RangeVarGetRelidExtended() to take flags argument?  (Andres Freund <andres@anarazel.de>)
Responses Re: Change RangeVarGetRelidExtended() to take flags argument?  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
On Mon, Mar 05, 2018 at 05:06:59PM -0800, Andres Freund wrote:
> Yea, that's a concern. OTOH, it doesn't seem nice to grow duplicates of
> similar code. It'd not be too hard to move RangeVarGetRelidExtended()
> code into RangeVarGetRelidInternal() and add
> RangeVarGetRelidTryLock(). Not sure if that's any better.  Or just add
> RangeVarGetRelidExtended2() :)

FWIW, it would have been nice to switch RangeVarGetRelidExtended so as
it handles a set of uint8 flags as one of its arguments.  missing_ok and
nowait could be part of that.  Avoiding a new flavor of RangevarGet
would be also nice, now RangeVarGetRelidExtended() is likely popular
enough in extensions that much things would break.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Change RangeVarGetRelidExtended() to take flags argument?
Next
From: Andres Freund
Date:
Subject: Re: Change RangeVarGetRelidExtended() to take flags argument?