Unix Technical Forum

BUG #1539: Suggestion

This is a discussion on BUG #1539: Suggestion within the pgsql Bugs forums, part of the PostgreSQL category; --> The following bug has been logged online: Bug reference: 1539 Logged by: Patrick Boulay Email address: pboulay@medrium.com PostgreSQL version: ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Bugs

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 09:38 AM
Patrick Boulay
 
Posts: n/a
Default BUG #1539: Suggestion


The following bug has been logged online:

Bug reference: 1539
Logged by: Patrick Boulay
Email address: pboulay@medrium.com
PostgreSQL version: 7.4.5
Operating system: Unix Solaris
Description: Suggestion
Details:

Sometime I do transaction and I do a couple of commands on SQL shell and I
forgot to commit my commands before testing my software.

Is it possible to change a prompt character during a transaction?
instead of:
database=#

it can be
database=>

or something like that!! After the commit, the prompt come back to
database=#

example:
database=# begin;
database=> insert into somewhere values(1);
....
database=> end;
database=#

it's more clear!

Patrick

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 09:39 AM
Tom Lane
 
Posts: n/a
Default Re: BUG #1539: Suggestion

"Patrick Boulay" <pboulay@medrium.com> writes:
> Is it possible to change a prompt character during a transaction?


Yes, read the psql reference page's section about "Prompting".

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:56 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com