Re: how to edit a function from psql?

From: Patrick Hatcher <PHatcher(at)macys(dot)com>
To: "Alvaro Herrera <alvherre" <alvherre(at)dcc(dot)uchile(dot)cl>
Cc: pgsql-general(at)postgresql(dot)org, "Thomas F(dot)O'Connell" <tfo(at)sitening(dot)com>
Subject: Re: how to edit a function from psql?
Date: 2004-11-04 21:32:06
Message-ID: OFFEE10D9E.3B72001F-ON88256F42.00763DF4-88256F42.0077881F@fds.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanks Alvaro. That was what I was looking for.

Patrick Hatcher

Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
11/04/04 03:40 PM

To
"Thomas F.O'Connell" <tfo(at)sitening(dot)com>
cc
Patrick Hatcher <PHatcher(at)macys(dot)com>, pgsql-general(at)postgresql(dot)org
Subject
Re: [GENERAL] how to edit a function from psql?

On Thu, Nov 04, 2004 at 02:22:06PM -0600, Thomas F.O'Connell wrote:
> To the best of my knowledge, this is not possible in psql.
>
> You can edit individual queries with \e, but I don't think it's
> possible to edit functions.

It is of course possible get the definition using \df+ and then use
CREATE OR REPLACE in conjuntion with \e to edit it at will.

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
Tulio: oh, para qué servirá este boton, Juan Carlos?
Policarpo: No, aléjense, no toquen la consola!
Juan Carlos: Lo apretaré una y otra vez.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2004-11-04 21:40:30 Re: how to edit a function from psql?
Previous Message Matt Clark 2004-11-04 21:01:52 Re: Restricting Postgres