Re: Where are PL/pgSQL functions stored?

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: David Shadovitz <david_shadovitz(at)xontech(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Where are PL/pgSQL functions stored?
Date: 2003-09-17 20:03:34
Message-ID: 20030917200334.GD4233@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Sep 17, 2003 at 10:32:57AM -0700, David Shadovitz wrote:
> Where are PL/pgSQL functions stored? I want to retrieve the text of a
> function that I've created.

In psql, try
\df+ your-function-name

Function bodies are in the pg_proc table, but the above trick should be
enough.

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"Hay que recordar que la existencia en el cosmos, y particularmente la
elaboración de civilizaciones dentre de él no son, por desgracia,
nada idílicas" (Ijon Tichy)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-09-17 20:05:42 Re: Weird query plan
Previous Message Dmitry Tkach 2003-09-17 19:56:24 Re: Weird query plan