Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id F08CC9FB2A0 for ; Wed, 11 Oct 2006 14:57:14 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 69991-01 for ; Wed, 11 Oct 2006 14:57:07 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from securetrans.mitrust.com (securetrans.mitrust.com [207.250.112.34]) by postgresql.org (Postfix) with ESMTP id B24FC9FB1CE for ; Wed, 11 Oct 2006 14:57:07 -0300 (ADT) Received: from [10.201.170.131] (tr2925.mi.micorp.com [10.201.170.131]) by securetrans.mitrust.com (Postfix) with ESMTP id 9CAB44F407E; Wed, 11 Oct 2006 12:57:06 -0500 (CDT) Message-ID: <452D3072.5080403@amsoftwaredesign.com> Date: Wed, 11 Oct 2006 12:57:06 -0500 From: Tony Caduto User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: thewild@freesurf.fr CC: pgsql-odbc@postgresql.org Subject: Re: Access2000 & sequence as primary key in view : #DELETED References: <452CAEC2.5070903@freesurf.fr> <452D0566.9070600@amsoftwaredesign.com> <452D0A85.8000204@freesurf.fr> <452D143A.7010300@amsoftwaredesign.com> <452D209E.80303@freesurf.fr> In-Reply-To: <452D209E.80303@freesurf.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.055 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200610/27 X-Sequence-Number: 8290 > > The fact is that we are talking about ODBC here. > The difference between a table and a view is that in the table one > record as one value of the sequence, forever. With a linked view in > access, if I sort the table or query it in anyway new sequence numbers > are given to all the fields. > I really don't see how that is possible. A Postgresql sequence when used in a Serial Type only generates a value on a insert. I have tons of views that reference tables with columns that are serial and they don't regenerate themselves when I sort the table in Access. Not to mention PG views are read only ( unless you have some rules defined) The only problem we have had with sorting in access is with varchars used as function OUT params which Access thinks are memo fields and we got around that using views that cast them to varchars with lengths. You have me totally lost as to the problem you are really having :-) -- Tony Caduto AM Software Design http://www.amsoftwaredesign.com Home of PG Lightning Admin for Postgresql Your best bet for Postgresql Administration