From: | Ed Loehr <eloehr(at)austin(dot)rr(dot)com> |
---|---|
To: | "Hambleton, John" <JHAMBLET(at)NMU(dot)EDU> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: [GENERAL] Storing Queries |
Date: | 2000-02-16 05:32:51 |
Message-ID: | 38AA3683.263BA5AE@austin.rr.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
"Hambleton, John" wrote:
>
> Aloha!
>
> PostgreSQL newbie here!
> Can I store SQL queries after I have started "psql <database>"?
> If so, how is it done? How do I recall the query to use it again?
Aside from "up-arrow" to get previous lines in psql, I thought I saw
something called pgbash somewhere that I thought might possibly have
bash-like command-editing...you might checkout info at
www.postgresql.org. Personally, I switch back and forth between
interactive psql (for big ad hoc cut-n-paste queries from logs), psql
-f filename (for long-standing repeated queries), and psql -c "query"
(for quick ad hoc queries I may want to repeat via bash command-line
editing...
Cheers,
Ed Loehr
From | Date | Subject | |
---|---|---|---|
Next Message | Ed Loehr | 2000-02-16 05:47:15 | Re: [GENERAL] Storing Queries |
Previous Message | Lamar Owen | 2000-02-16 04:04:47 | Re: [GENERAL] syntax error 2334 : parse error |