From: | Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-hackers(at)lists(dot)postgresql(dot)org |
Subject: | Re: Allowing extensions to find out the OIDs of their member objects |
Date: | 2019-01-22 11:05:58 |
Message-ID: | 8736pl3r8f.fsf@news-spur.riddles.org.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
>>>>> "Tom" == Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:
>> 1. easier to read and maintain
Tom> The SQL-level API that I'm imagining would look roughly like
Tom> a command like this at the end of an extension's script:
Tom> ALTER EXTENSION extname SET MAP
Tom> OBJECT 1 IS FUNCTION foo(int, int),
Tom> OBJECT 2 IS OPERATOR +(float, float), ...
That's what I thought and I had something similar in mind except not
with numbers.
This is obviously the same situation we have with operator and function
numbers in opclasses right now, which is something I personally find
annoying: the fact that (for example) GiST operator members are assigned
some non-self-documenting number that you can only resolve by looking at
the opclass implementation to find out what it thinks the numbers mean.
--
Andrew (irc:RhodiumToad)
From | Date | Subject | |
---|---|---|---|
Next Message | Kohei KaiGai | 2019-01-22 11:50:31 | Re: add_partial_path() may remove dominated path but still in use |
Previous Message | Thomas Munro | 2019-01-22 11:04:36 | Rare SSL failures on eelpout |