Re: [GENERAL] optimize pg_tables query ( text vs varchar ) ...why ?
В списке pgsql-general по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: [GENERAL] optimize pg_tables query ( text vs varchar ) ...why ? |
| Дата | |
| Msg-id | 24525.1502896851@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: [GENERAL] optimize pg_tables query ( text vs varchar ) ...why ? (gmb <gmbouwer@gmail.com>) |
| Ответы |
Re: [GENERAL] optimize pg_tables query ( text vs varchar ) ...why ?
|
| Список | pgsql-general |
gmb <gmbouwer@gmail.com> writes:
> Tom Lane-2 wrote
>> Personally I'd have left the function parameters as text and inserted
>> explicit coercions:
> Just out of curiosity , is there a reason why this will be you preference ?
Well, if the rest of your code thinks that table names are of type text
(which is reasonable, as most of what you might want to do with them
would be better served by text), then it seems like you want to keep
this odd catalog interaction isolated within the function rather than
advertise it in the function's API.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера