| От | Stephan Szabo |
|---|---|
| Тема | Re: Indexes on Expressions -- Parentheses |
| Дата | |
| Msg-id | 20040928222637.L43334@megazone.bigpanda.com обсуждение исходный текст |
| Ответ на | Indexes on Expressions -- Parentheses (Thomas F.O'Connell <tfo@sitening.com>) |
| Список | pgsql-general |
sszabo@bigpanda.com On Tue, 28 Sep 2004, Thomas F.O'Connell wrote: > From 11.5 in the docs: > > "The syntax of the CREATE INDEX command normally requires writing > parentheses around index expressions, as shown in the second example. > The parentheses may be omitted when the expression is just a function > call, as in the first example." > > But when I try this: > > db=# CREATE INDEX expression_idx on some_table( extract( year from > some_column ) ); Extract(year from some_column) is not really just a function call it's an expression that looks similar to a function call because that's how SQL defined it.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера