X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B309053759; Wed, 4 May 2005 07:57:25 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 30956-01; Wed, 4 May 2005 10:57:16 +0000 (GMT) Received: from mxsf03.cluster1.charter.net (mxsf03.cluster1.charter.net [209.225.28.203]) by svr1.postgresql.org (Postfix) with ESMTP id AA46A52A8B; Wed, 4 May 2005 07:57:14 -0300 (ADT) Received: from mxip02.cluster1.charter.net (mxip02a.cluster1.charter.net [209.225.28.132]) by mxsf03.cluster1.charter.net (8.12.11/8.12.11) with ESMTP id j44AvG1M030322; Wed, 4 May 2005 06:57:16 -0400 Received: from pc-68-118-180-13.will.ct.charter.com (HELO [192.168.116.102]) (68.118.180.13) by mxip02.cluster1.charter.net with ESMTP; 04 May 2005 06:57:17 -0400 X-Ironport-AV: i="3.92,153,1112587200"; d="scan'208"; a="894040044:sNHT34607266" Message-ID: <4278AA8C.6050502@NarrowPathInc.com> Date: Wed, 04 May 2005 06:57:16 -0400 From: Keith Worthington Reply-To: KeithW@NarrowPathInc.com Organization: Narrow Path, Inc. User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Zlatko Matic Cc: pgsql-general@postgresql.org, pgsql-interfaces@postgresql.org Subject: Re: [INTERFACES] calculated identity field in views, again... References: <20050503151626.37630.qmail@web52405.mail.yahoo.com> <4277EAEF.5030707@mailblocks.com> <001201c5502c$1c030430$2d8b1dc3@zlatkovyfkpgz6> <42784864.4060408@NarrowPathInc.com> <002e01c55087$74e44090$c5861dc3@zlatkovyfkpgz6> In-Reply-To: <002e01c55087$74e44090$c5861dc3@zlatkovyfkpgz6> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.075 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200505/178 X-Sequence-Number: 77526 >> Zlatko Matic wrote: >> >>> I asked this question several weeks ago, but nobody proposed a >>> solution, so I am repeating the same question again... >>> I have an MS Access front-end for a database on PostgreSQL. >>> I could use pass-through queries as record sources for reports and it >>> works fine... >>> Unfortunately, MS Access doesn't allow pass-through queries to be >>> records sources for subforms. >>> Therefore I tried to base subforms on regular JET queries on linked >>> tables. It was too slow... >>> Then I tried to base subforms on DAO recordset code generated from >>> pass-through QueryDef objects. Although it worked, it was very >>> unstable... >>> >>> Now it seems to me that POstgreSQL views are the best solution, but >>> Access considers views as tables (!) and needs column with unique >>> values. >>> All those views are complicated queries on several tables, so I can't >>> use any table's column as primary key. I need a calculated column in >>> the view that Access will consider as primary key column. >>> In regular tables, I use bigserial field, but how can I create >>> calculated bigserial column in a view ? >>> >>> Thanks. >>> >>> ---------------------------(end of broadcast)--------------------------- >>> TIP 9: the planner will ignore your desire to choose an index scan if >>> your >>> joining column's datatypes do not match >>> >>> >> >> Another option is to toss the MS Access altogether and program the >> front end entirely in VB. That is what we did. >> >> -- >> Kind Regards, >> Keith >> > Zlatko Matic wrote: > You mean VB.NET ? Actually we wrote our interface using VB6. -- Kind Regards, Keith