Re: select function & search_path problem/bug?

From: Richard Huxton <dev(at)archonet(dot)com>
To: ivan <iv(at)psycho(dot)pl>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: select function & search_path problem/bug?
Date: 2004-08-20 10:39:02
Message-ID: 4125D4C6.1020601@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

ivan wrote:
> hi,
>
> i have a problem with selecting function :
>
> db=# select auxilium.exists('arx.mods', 'r');
> exists
> --------
> t
> (1 row)
>
> db=# select exists('arx.mods', 'r');
> ERROR: syntax error at or near "'arx.mods'" at character 15

I believe the problem here is that exists is a reserved word (as in
SELECT ... FROM ... WHERE EXISTS ...)

I think you should be ok if you quote your function name
SELECT "exists"(...)
Personally, I'd change it's name.

--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Devrim GUNDUZ 2004-08-20 10:51:08 Re: All three packages ...
Previous Message ivan 2004-08-20 10:29:32 select function & search_path problem/bug?