| От | Tom Lane |
|---|---|
| Тема | Re: [PERFORM] How to force an Index ? |
| Дата | |
| Msg-id | 29873.1063901770@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: [PERFORM] How to force an Index ? (Rhaoni Chiu Pereira <rhaoni@sistemica.info>) |
| Список | pgsql-admin |
Rhaoni Chiu Pereira <rhaoni@sistemica.info> writes:
> I need to know if there is a way to set the to_char output to varchar instead of
> text !
Why don't you change the datatype of ano_mes to text, instead? It's
unlikely your application would notice the difference. (You could set
a CHECK constraint on the length if you really want to duplicate the
behavior of varchar(6).)
Alternatively, try 7.4 beta. I believe this issue goes away in 7.4,
because varchar no longer has separate comparison operators.
Of course there's also the option of modifying to_char's result type
in pg_proc, but I won't promise that doing so wouldn't break things.
regards, tom lane
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера