Unix Technical Forum

psql: add volatility to \df+

This is a discussion on psql: add volatility to \df+ within the Pgsql Patches forums, part of the PostgreSQL category; --> Attached is a patch that adds information about function volatility to the output of psql's "\df+" slash command. I'll ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql Patches

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-18-2008, 11:18 AM
Neil Conway
 
Posts: n/a
Default psql: add volatility to \df+

Attached is a patch that adds information about function volatility to
the output of psql's "\df+" slash command. I'll apply this to HEAD
tomorrow, barring any objections.

-Neil



---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-18-2008, 11:18 AM
Tom Lane
 
Posts: n/a
Default Re: psql: add volatility to \df+

Neil Conway <neilc@samurai.com> writes:
> Attached is a patch that adds information about function volatility to
> the output of psql's "\df+" slash command. I'll apply this to HEAD
> tomorrow, barring any objections.


+1, but are there not any documentation changes to make?

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-18-2008, 11:18 AM
Joshua D. Drake
 
Posts: n/a
Default Re: psql: add volatility to \df+

Tom Lane wrote:
> Neil Conway <neilc@samurai.com> writes:
>> Attached is a patch that adds information about function volatility to
>> the output of psql's "\df+" slash command. I'll apply this to HEAD
>> tomorrow, barring any objections.

>
> +1, but are there not any documentation changes to make?


Well here is a question (just because I haven't seen it) is there a list
of functions and their volatility in the docs?

Joshua D. Drake


>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
> http://archives.postgresql.org
>



--

=== The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
Providing the most comprehensive PostgreSQL solutions since 1997
http://www.commandprompt.com/

Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
PostgreSQL Replication: http://www.commandprompt.com/products/


---------------------------(end of broadcast)---------------------------
TIP 5: 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
  #4 (permalink)  
Old 04-18-2008, 11:18 AM
Neil Conway
 
Posts: n/a
Default Re: psql: add volatility to \df+

On Tue, 2007-26-06 at 20:29 -0700, Joshua D. Drake wrote:
> Tom Lane wrote:
> > +1, but are there not any documentation changes to make?


Sure, I'll update the psql ref page.

> Well here is a question (just because I haven't seen it) is there a list
> of functions and their volatility in the docs?


Not relevant to this thread, but AFAICS there is no explicit list of the
volatilities of the builtin functions.

-Neil



---------------------------(end of broadcast)---------------------------
TIP 5: 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
  #5 (permalink)  
Old 04-18-2008, 11:18 AM
Alvaro Herrera
 
Posts: n/a
Default Re: psql: add volatility to \df+

Tom Lane wrote:
> Neil Conway <neilc@samurai.com> writes:
> > Attached is a patch that adds information about function volatility to
> > the output of psql's "\df+" slash command. I'll apply this to HEAD
> > tomorrow, barring any objections.

>
> +1, but are there not any documentation changes to make?


+1 as well but I'm wondering whether the output is too wide. Is it
possible to find some shorter string to convey the same meaning?
Ideally, without being a single character.

--
Alvaro Herrera http://www.amazon.com/gp/registry/CTMLCN8V17R4
"Saca el libro que tu religión considere como el indicado para encontrar la
oración que traiga paz a tu alma. Luego rebootea el computador
y ve si funciona" (Carlos Duclós)

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-18-2008, 11:18 AM
Neil Conway
 
Posts: n/a
Default Re: psql: add volatility to \df+

On Wed, 2007-27-06 at 00:16 -0400, Alvaro Herrera wrote:
> +1 as well but I'm wondering whether the output is too wide.


Well, the output of \df+ is already likely to be wider than 72
characters, so I'm not sure the patch would really make the situation
materially worse ("\df+ nextval" is 118 characters wide without the
patch, for example). You could also argue that if the user specifies
"+", presumably they are less worried about a concise output format.

> Is it possible to find some shorter string to convey the same meaning?


Nothing obvious comes to mind, but I'm not opposed in principle. Any
suggestions?

-Neil



---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-18-2008, 11:18 AM
Neil Conway
 
Posts: n/a
Default Re: psql: add volatility to \df+

On Tue, 2007-26-06 at 15:10 -0700, Neil Conway wrote:
> Attached is a patch that adds information about function volatility to
> the output of psql's "\df+" slash command. I'll apply this to HEAD
> tomorrow, barring any objections.


Applied.

-Neil



---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at

http://www.postgresql.org/about/donate

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 05:14 PM.


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