Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 9C40E2E3254 for ; Thu, 13 Dec 2007 20:48:38 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 87875-03 for ; Thu, 13 Dec 2007 20:48:23 -0400 (AST) Received: from www01.kensystem.com (www01.kensystem.com [72.19.170.120]) by postgresql.org (Postfix) with ESMTP id AEAAB2E3251 for ; Thu, 13 Dec 2007 20:48:33 -0400 (AST) Received: from 192.168.0.3 by www01.kensystem.com (SMTPD); id s20071213174831.61869; Thu, 13 Dec 2007 17:48:31 Message-ID: <4761D2DF.4080204@kensystem.com> Date: Thu, 13 Dec 2007 17:48:31 -0700 From: Ken Johanson User-Agent: Thunderbird 1.5.0.13 (Windows/20070809) MIME-Version: 1.0 To: Kris Jurka CC: pgsql-general@postgresql.org Subject: Re: RETURNING clause: how to specifiy column indexes? References: <22a9f7570703301215y44a937d0r5faa706bad7948c@mail.gmail.com> <4610AA0C.30608@ejurka.com> <47579D44.6060005@kensystem.com> <47579FBE.1070503@kensystem.com> <475F7766.2040005@kensystem.com> <12796.1197439644@sss.pgh.pa.us> <4760D33E.40004@kensystem.com> <4760DC91.8090103@kensystem.com> In-Reply-To: <4760DC91.8090103@kensystem.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/939 X-Sequence-Number: 125682 Kris and all, Here is the query I will call to the get the name of columns by ordinal position. Do you see any compatibility drivers will older server versions, or other issues? SELECT column_name FROM information_schema.columns WHERE table_catalog=? AND table_schema=? AND table_name=? ORDER BY ordinal_position Ken