X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 30ED8D1B456 for ; Fri, 16 Jan 2004 02:04:48 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 24416-09 for ; Thu, 15 Jan 2004 22:04:20 -0400 (AST) Received: from web20801.mail.yahoo.com (web20801.mail.yahoo.com [216.136.226.190]) by svr1.postgresql.org (Postfix) with SMTP id 0A756D1B4A7 for ; Thu, 15 Jan 2004 22:04:16 -0400 (AST) Message-ID: <20040116020419.59067.qmail@web20801.mail.yahoo.com> Received: from [68.107.248.174] by web20801.mail.yahoo.com via HTTP; Thu, 15 Jan 2004 18:04:19 PST Date: Thu, 15 Jan 2004 18:04:19 -0800 (PST) From: Jeff Eckermann Subject: Re: linked tables Access <---> PG 7.4.1 To: Andreas , pgsql-odbc@postgresql.org In-Reply-To: <40072FE9.5090608@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/38 X-Sequence-Number: 3667 --- Andreas wrote: > Hi, > I fear this might be off-topic but I'm sure I'd be > hit, too, if I asked > something concerning the interaction with PostgreSQL > on the dark side. ;) Really an Access question, rather than a PostgreSQL question, but I'm sure we don't mind ;-) > > Client: MS-Access 2000 > Server: PG 7.4.1 > > I ODBC-link some tables and all is fine. > Then I manually link a PostgreSQL-view and Access > asks which of the > fields will be the primary key of this "table". > > Then again, if I link the view with VBA's DAO > command > CurrentDB.CreateTableDef( [...] ) no question > appears and the view gets > created as a table-object. > If I inspect it's design, there is no field marked > as primary key. > > Is the PK really obsolete or does it have > implications in the > performance of Access or PG ? AFAIK it only matters if you are inserting(?) or updating records, which you are probably not doing in the case of a view. When processing updates, for example, Access will select the record back from the database: the primary key will be used in the select, if there is one, otherwise the select will use an equality condition on every field for the select. I find that Access is happier if there is a single key field in every table, even if one has to be created for that purpose. Probably others can elaborate on this. One of the reasons I use Access is that I don't have to worry too much about implementation details ;-) __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus