Re: BUG #3592: alter function rename to doesn't work

From: Devrim GÜNDÜZ <devrim(at)CommandPrompt(dot)com>
To: Ow <nikeow(at)yahoo(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #3592: alter function rename to doesn't work
Date: 2007-09-02 09:40:20
Message-ID: 1188726020.2763.71.camel@laptop.gunduz.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi,

On Sun, 2007-09-02 at 03:45 +0000, Ow wrote:
>
> => alter function dbo.test(text) rename to dbo.test_rename;
> ERROR: syntax error at or near "."
> LINE 1: alter function dbo.test(text) rename to dbo.test_rename;

AFAIK, the correct syntax is:

ALTER FUNCTION dbo.test(text) RENAME TO test_rename;

You should not specify schema name in the function. The new function
will be created in the same schema that the original function is
created.

Regards,
--
Devrim GÜNDÜZ
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: plPHP, ODBCng - http://www.commandprompt.com/

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Omkar Patkar 2007-09-02 11:38:38 BUG #3593: Postgres Installer does not work
Previous Message Ow 2007-09-02 03:45:40 BUG #3592: alter function rename to doesn't work