From: | Klint Gore <kgore4(at)une(dot)edu(dot)au> |
---|---|
To: | Volkan YAZICI <yazicivo(at)ttmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: psql \e command |
Date: | 2008-06-04 08:12:16 |
Message-ID: | 48464E60.5050708@une.edu.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Volkan YAZICI wrote:
> 2. It would be really neat to be able to issue
>
> \et regex - Edit table. (Create script of table will get dumped.)
> \et+ regex - Edit table with dependents. (With create script of
> INDEXes, triggers, etc.)
>
How do you intend to use it?
postgres=# create table bar (foo int);
CREATE TABLE
postgres=# \e
ERROR: relation "bar" already exists
postgres=#
You'd have to comment out the create table and then write all the alter
table statements to get the changes made.
> \ef regex - Edit function.
>
Yes. Like what pgadmin does when you hit the sql button with a function
selected.
postgres=# create or replace function foo() returns int as $$ select 1;
$$ language sql;
CREATE FUNCTION
postgres=# \e
CREATE FUNCTION
postgres=#
klint.
--
Klint Gore
Database Manager
Sheep CRC
A.G.B.U.
University of New England
Armidale NSW 2350
Ph: 02 6773 3789
Fax: 02 6773 3266
EMail: kgore4(at)une(dot)edu(dot)au
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2008-06-04 08:19:08 | Re: [JDBC] How to just "link" to some data feed |
Previous Message | Mattias.Arbin | 2008-06-04 07:52:00 | Insert into master table ->" 0 rows affected" -> Hibernate problems |