Inserting a record data type into a table - Mailing list pgsql-general

From Graeme Hinchliffe
Subject Inserting a record data type into a table
Date
Msg-id 1113226411.955.90.camel@hatstand.office.zen.co.uk
Whole thread Raw
Responses Re: Inserting a record data type into a table  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Hiya
    Is it possible to insert a record data type into a table, or am I going
to have to refer to each attribute individually in an insert?

what I would like to be able to do is simply

INSERT INTO newtable VALUES (NEW);

and have the whole NEW record in a trigger inserted into the new table.

Thanks

--
-----
Graeme Hinchliffe (BSc)
Core Systems Designer
Zen Internet (http://www.zen.co.uk/)

Direct: 0845 058 9074
Main  : 0845 058 9000
Fax   : 0845 058 9005

Attachment

pgsql-general by date:

Previous
From: Weiping
Date:
Subject: Re: bytea vs large object in version 8
Next
From: Tom Lane
Date:
Subject: Re: pg 8.0.1-r3 killls pgadmin3 and phppgadmin