Unix Technical Forum

Re: [COMMITTERS] pgsql: Change the row constructor syntax (ROW(...))

This is a discussion on Re: [COMMITTERS] pgsql: Change the row constructor syntax (ROW(...)) within the pgsql Hackers forums, part of the PostgreSQL category; --> Does this complete this TODO item? o Allow UPDATE tab SET ROW (col, ...) = (...) for updating multiple ...


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

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-12-2008, 03:13 AM
Bruce Momjian
 
Posts: n/a
Default Re: [COMMITTERS] pgsql: Change the row constructor syntax (ROW(...))


Does this complete this TODO item?

o Allow UPDATE tab SET ROW (col, ...) = (...) for updating multiple
columns


---------------------------------------------------------------------------

Tom Lane wrote:
> Log Message:
> -----------
> Change the row constructor syntax (ROW(...)) so that list elements foo.*
> will be expanded to a list of their member fields, rather than creating
> a nested rowtype field as formerly. (The old behavior is still available
> by omitting '.*'.) This syntax is not allowed by the SQL spec AFAICS,
> so changing its behavior doesn't violate the spec. The new behavior is
> substantially more useful since it allows, for example, triggers to check
> for data changes with 'if row(new.*) is distinct from row(old.*)'. Per
> my recent proposal.
>
> Modified Files:
> --------------
> pgsql/doc/src/sgml:
> syntax.sgml (r1.106 -> r1.107)
> (http://developer.postgresql.org/cvsw...1.106&r2=1.107)
> pgsql/src/backend/parser:
> parse_expr.c (r1.192 -> r1.193)
> (http://developer.postgresql.org/cvsw...1.192&r2=1.193)
> parse_target.c (r1.143 -> r1.144)
> (http://developer.postgresql.org/cvsw...1.143&r2=1.144)
> pgsql/src/include/parser:
> parse_target.h (r1.39 -> r1.40)
> (http://developer.postgresql.org/cvsw...1=1.39&r2=1.40)
> pgsql/src/test/regress/expected:
> triggers.out (r1.22 -> r1.23)
> (http://developer.postgresql.org/cvsw...1=1.22&r2=1.23)
> pgsql/src/test/regress/sql:
> triggers.sql (r1.12 -> r1.13)
> (http://developer.postgresql.org/cvsw...1=1.12&r2=1.13)
>
> ---------------------------(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
>


--
Bruce Momjian bruce@momjian.us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

---------------------------(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
  #2 (permalink)  
Old 04-12-2008, 03:13 AM
Tom Lane
 
Posts: n/a
Default Re: [COMMITTERS] pgsql: Change the row constructor syntax (ROW(...))

Bruce Momjian <bruce@momjian.us> writes:
> Does this complete this TODO item?
> o Allow UPDATE tab SET ROW (col, ...) = (...) for updating multiple
> columns


No, that's unrelated.

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
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 02:18 PM.


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