Re: Constraint exclusion issue

Поиск
Список
Период
Сортировка
От Mathieu De Zutter
Тема Re: Constraint exclusion issue
Дата
Msg-id d4468d971001161140n6f5e02d6he8ed979d13a0e521@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Constraint exclusion issue  (Scott Marlowe <scott.marlowe@gmail.com>)
Ответы Re: Constraint exclusion issue
Список pgsql-general
On Sat, Jan 16, 2010 at 7:26 PM, Scott Marlowe <scott.marlowe@gmail.com> wrote:
> On Sat, Jan 16, 2010 at 11:02 AM, Mathieu De Zutter
> <mathieu@dezutter.org> wrote:
>> shs-dev=# explain select * from parent where (c,n) = '("b",0)';
>> ERROR:  input of anonymous composite types is not implemented
>
> Shouldn't that be 'b' not "b" ?

It is special syntax to avoid escapes:

shs-dev=# select '("b",0)'::y;
   y
-------
 (b,0)

shs-dev=# select ('("b,",0)'::y).c;
ERROR:  value too long for type character(1)
LINE 1: select ('("b,",0)'::y).c;

В списке pgsql-general по дате отправления:

Предыдущее
От: Raymond O'Donnell
Дата:
Сообщение: Re: SELECT is causing a runtime error when used in stored functions: State=42601, Err=7, Msg=ERROR: query has no destination for result data;
Следующее
От: Ivan Sergio Borgonovo
Дата:
Сообщение: Re: OR tsquery