X-Original-To: pgsql-sql@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 2358247610C for ; Thu, 8 May 2003 09:56:49 -0400 (EDT) Received: from ccis01.baylor.edu (ccis01.baylor.edu [129.62.1.18]) by postgresql.org (Postfix) with ESMTP id 6404C474E4F for ; Thu, 8 May 2003 09:56:48 -0400 (EDT) Received: from baylor.edu ([147.80.228.49]) by ccis01.baylor.edu (8.9.3p2/8.9.1) with ESMTP id IAA1469179 for ; Thu, 8 May 2003 08:56:52 -0500 (CDT) Date: Thu, 8 May 2003 08:58:24 -0500 Mime-Version: 1.0 (Apple Message framework v552) Content-Type: text/plain; charset=US-ASCII; format=flowed Subject: insert rowtype From: Bryan Klimt To: pgsql-sql@postgresql.org Content-Transfer-Encoding: 7bit Message-Id: <22B5FF60-815D-11D7-B60D-000A95774E48@baylor.edu> X-Mailer: Apple Mail (2.552) X-Spam-Status: No, hits=-7.5 required=5.0 tests=BAYES_10,HTML_10_20,HTML_TAG_BALANCE_TABLE, USER_AGENT_APPLEMAIL version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200305/164 X-Sequence-Number: 13329 In a plpgsql function, I have a variable of type table%rowtype I populate the row by calling "select into * from " then i change some stuff like ". := " now i want to insert the row into the table as a new row - is there an easy way to do this? i know i could do "insert into
values ( ., ., ... );" but that is a lot of typing, and it seems like there should be an easier way. -Bryan