Unix Technical Forum

pgcrypto volatility and strictness changes

This is a discussion on pgcrypto volatility and strictness changes within the Pgsql Patches forums, part of the PostgreSQL category; --> This patch updates the DDL for contrib/pgcrypto to create all functions as STRICT, and all functions except gen_salt() as ...


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, 12:37 AM
Michael Fuhr
 
Posts: n/a
Default pgcrypto volatility and strictness changes

This patch updates the DDL for contrib/pgcrypto to create all
functions as STRICT, and all functions except gen_salt() as IMMUTABLE.
gen_salt() is VOLATILE.

Although the functions are now STRICT, I left their PG_ARGISNULL()
checks in place as a protective measure for users who install the
new code but use old (non-STRICT) catalog entries (e.g., restored
from a dump). Per recent discussion in pgsql-hackers.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/


---------------------------(end of broadcast)---------------------------
TIP 8: 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, 12:38 AM
Neil Conway
 
Posts: n/a
Default Re: pgcrypto volatility and strictness changes

Michael Fuhr wrote:
> This patch updates the DDL for contrib/pgcrypto to create all
> functions as STRICT, and all functions except gen_salt() as IMMUTABLE.
> gen_salt() is VOLATILE.


Barring any objections, I'll apply this tomorrow.

-Neil

---------------------------(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
  #3 (permalink)  
Old 04-18-2008, 12:39 AM
Neil Conway
 
Posts: n/a
Default Re: pgcrypto volatility and strictness changes

Michael Fuhr wrote:
> This patch updates the DDL for contrib/pgcrypto to create all
> functions as STRICT, and all functions except gen_salt() as IMMUTABLE.
> gen_salt() is VOLATILE.


Applied, thanks.

-Neil

---------------------------(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
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:16 PM.


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