Re: idea: multiple arguments to_regclass function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: idea: multiple arguments to_regclass function
Date: 2023-04-16 14:23:23
Message-ID: 2176980.1681655003@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> writes:
> I missing some variants of to_regclass

> to_regclass(schemaname, objectname)
> to_regclass(catalogname, schemaname, objectname)

Can do that already:

to_regclass(quote_ident(schemaname) || '.' || quote_ident(objectname))

I'm not eager to build nine more to_reg* functions to do the equivalent
of that, and even less eager to build eighteen.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2023-04-16 14:29:48 Re: Can we delete the vacuumdb.sgml notes about which version each option was added in?
Previous Message Tom Lane 2023-04-16 14:18:47 Re: Direct I/O