Re: [COMMITTERS] pgsql-server: Clean up generation of default
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: [COMMITTERS] pgsql-server: Clean up generation of default |
| Дата | |
| Msg-id | 26591.1087062248@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: [COMMITTERS] pgsql-server: Clean up generation of default (Christopher Kings-Lynne <chriskl@familyhealth.com.au>) |
| Ответы |
Re: [COMMITTERS] pgsql-server: Clean up generation of
|
| Список | pgsql-hackers |
Christopher Kings-Lynne <chriskl@familyhealth.com.au> writes:
> OK, attached is a file with the original function, and an overloaded one
> that just takes table and column. It searches your current search_path
> to find the first matching table.
The right way to do this at the C level would be to use the same
infrastructure as nextval() does to accept arguments like 'foo' and
'"Foo"."Bar"'. There's no reason to restrict the two-argument form
to the current search_path.
Given that you do that, I'm not sure that a three-argument form is even
needed. AFAIR no one has asked for a two-argument form of nextval...
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера