Re: how to drop function?

Поиск
Список
Период
Сортировка
От Ivan Sergio Borgonovo
Тема Re: how to drop function?
Дата
Msg-id 20111116091237.6a8248ec@dawn.webthatworks.it
обсуждение исходный текст
Ответ на Re: how to drop function?  ("J.V." <jvsrvcs@gmail.com>)
Список pgsql-general
On Tue, 15 Nov 2011 18:48:00 -0700
"J.V." <jvsrvcs@gmail.com> wrote:

> the drop function works when running from a pgAdmin III Sql window
>
> but when I try to do from the command line and script it:
>      psql -h $PGHOST -p $PGPORT -d $PGDATABASE -U $PGUSER -c
> "*drop function ....*"
>
> the above fails.

> It does however work with functions with no params or a single
> param. It seems to get hung up on the comma and the extra set of
> parenthesis

It would be nice to know how it fails and if you reposted exactly
what you wrote to make it fail and what you wrote to make it succede.

What does it mean "get hung on the comma and extra set of
parenthesis"?

ivan@dawn:~$ psql -h lan test -c 'drop function process_table
  (action TEXT, v_table_name varchar(100));'
DROP FUNCTION
ivan@dawn:~$

the psql command all on the same line.

--
Ivan Sergio Borgonovo
http://www.webthatworks.it


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

Предыдущее
От: David Johnston
Дата:
Сообщение: Re: partitioning a dataset + employing hysteresis condition
Следующее
От: Thomas Kellerer
Дата:
Сообщение: Re: how to drop function?