Tom Lane writes:
> Weren't you just arguing that such cases could/should use the OID, not
> the name at all?
Yes, but if we're going to have name arguments, we should have sane ones.
> ISTM the name-based variants will primarily be used for user-entered
> names, and in that case the user can reasonably expect that a name
> will be interpreted the same way as if he'd written it out in a query.
That would be correct if the user were actually entering the name in the
same way, i.e., unquoted or double-quoted.
> The nextval approach is ugly, I'll grant you, but it's also functional.
But it's incompatible with the SQL conventions.
--
Peter Eisentraut peter_e@gmx.net http://funkturm.homeip.net/~peter