Unix Technical Forum

BUG #3886: pgsql NEW dinamic columns change

This is a discussion on BUG #3886: pgsql NEW dinamic columns change within the pgsql Bugs forums, part of the PostgreSQL category; --> The following bug has been logged online: Bug reference: 3886 Logged by: ing. Ovidiu Tanasiciuc Email address: tanasiciuc@yahoo.com PostgreSQL ...


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

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 11:14 AM
ing. Ovidiu Tanasiciuc
 
Posts: n/a
Default BUG #3886: pgsql NEW dinamic columns change


The following bug has been logged online:

Bug reference: 3886
Logged by: ing. Ovidiu Tanasiciuc
Email address: tanasiciuc@yahoo.com
PostgreSQL version: 8.25
Operating system: Windows Xp
Description: pgsql NEW dinamic columns change
Details:

Hi. I want to make a trigger for more tables that then i try to make a
update to make a new insert. i find a solution in next syntax
INSERT INTO TG_RELNAME SELECT NEW.*;
RETURN OLD;

the problem is that the primary key is violated because NEW.id_client
already exists.

i try to find a solution for change

NEW.<variable>=new_sequence .I can make this but the problem is how to
concatenate NEW with the variable???
I have solutions for put in the char or text <variable> the corect primary
key.


Please send me a solution or make a update at pgsql because a lot of people
need to change dynamic NEW or OLD columns(see in google : dynamic access
RECORD columns)

thanks...
PS: when it will be finsih slony2 syncronus master-master. I use very well
until now master with 10 slaves via VPN,but i will need master-master
solution for free.

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


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