Re: Display a function

From: Joel Rodrigues <borgempath(at)Phreaker(dot)net>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: Display a function
Date: 2002-11-13 18:05:40
Message-ID: 854964B8-F732-11D6-8BB2-0005024EF27F@Phreaker.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Sunday, November 10, 2002, at 11:19 , Joel Rodrigues wrote:

> On Wednesday, November 6, 2002, at 10:03 , Setyo Nugroho wrote:
>
>> Hi all,
>> How is it to display the listing/ descriptions of a function
>> or a table
>> created using plpgsql or using database client such as psql?
>>
>> Regards
>> Setyo Nugroho
>>
>
> Hi, I haven't tried it (yet), but there are instructions for
> this in PostgreSQL Notes by Richard Huxton.
> <http://www.archonet.com/pgdocs/pgnotes.html>
>
> It's in Chapter 10, Dealing with the system tables: "Viewing
> triggers and their functions".
>
> Cheers,
> Joel

Well, I tried it myself and it doesn't work (yet).

This is Huxton's code:

SELECT cl.relname,tr.tgname AS triggername, tr.tgenabled,
fn.proname AS func_name
FROM pg_trigger AS tr, pg_class AS cl, pg_proc AS fn
WHERE tr.tgrelid=cl.oid AND tr.tgfoid=fn.oid AND cl.relname ˜
'^foo%';

This is the result :

ERROR: parser: parse error at or near "˜"
psql:showfunc.sql:3: ERROR: parser: parse error at or near "˜"

I'm pretty certain *I* am doing something wrong.

- Joel

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message von Schwerdtner, Thomas (GXS, FPI) 2002-11-13 18:42:50 Re: Can't add records
Previous Message Joel Rodrigues 2002-11-13 18:04:41 using functions to generate custom error messages