Re: proposal - reglanguage type

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)postgresql(dot)org>
Subject: Re: proposal - reglanguage type
Date: 2020-03-01 18:31:20
Message-ID: 27279.1583087480@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 miss a reglanguage type from our set of reg* types.

I'm skeptical about this. I don't think we want to wind up with a reg*
type for every system catalog, so there needs to be some rule about which
ones it's worth the trouble for. The original idea was to provide a reg*
type if the lookup rule would be anything more complicated than "select
oid from <catalog> where name = 'foo'". We went beyond that with
regnamespace and regrole, but I think there was a sufficient argument of
usefulness for those two. I don't see that reglanguage has enough of
a use-case.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2020-03-01 18:38:59 Re: proposal - reglanguage type
Previous Message Justin Pryzby 2020-03-01 15:45:40 Re: explain HashAggregate to report bucket and memory stats