[Q] When should I use reg* types instead of oid in the system catalog?

From: "MauMau" <maumau307(at)gmail(dot)com>
To: "PostgreSQL Hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: [Q] When should I use reg* types instead of oid in the system catalog?
Date: 2017-05-20 21:15:13
Message-ID: 7D4ECED3312448189CC80694BDB11D8D@tunaPC
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello,

Both pg_aggregate.aggfnoid and pg_trigger.tgfoid references
pg_proc.oid, but the data types of them are regproc and oid
respectively. Is there any criterion on when to which in the system
catalog? Is the regproc choice just for readability of the catalog
query output? Should pg_trigger.tgfoid also have been changed to
regproc?

Regards
MauMau

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2017-05-20 21:31:09 Re: proposal psql \gdesc
Previous Message Fabien COELHO 2017-05-20 20:26:08 Re: proposal psql \gdesc