Re: Script errors on run

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Script errors on run
Дата
Msg-id 20080604162805.T83389@megazone.bigpanda.com
обсуждение исходный текст
Ответ на Re: Script errors on run  (Ralph Smith <smithrn@washington.edu>)
Ответы Re: Script errors on run  (Ralph Smith <smithrn@washington.edu>)
Список pgsql-general
On Wed, 4 Jun 2008, Ralph Smith wrote:

>    -- ==========================================
>    good_date := to_date(year||'-'||month||'-'||day , 'YYYY-MM-DD') ;
>
>    RAISE INFO 'good_date =  %', good_date ;
>
>    UsecsD := EXTRACT(EPOCH FROM DATE 'good_date') ;

You want something like:
 UsecsD := EXTRACT(EPOCH FROM good_date);

Note the lack of single quotes. You want to use the variable's value, not
a literal string with the value 'good_date'.

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

Предыдущее
От: Ralph Smith
Дата:
Сообщение: Re: Script errors on run
Следующее
От: Tom Lane
Дата:
Сообщение: Re: full vacuum really slows down query