Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iiV61-0008I8-FE for pgsql-general@arkaria.postgresql.org; Sat, 21 Dec 2019 03:06:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iiV60-0003qa-9w for pgsql-general@arkaria.postgresql.org; Sat, 21 Dec 2019 03:06:24 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iiV5z-0003oZ-Vo for pgsql-general@lists.postgresql.org; Sat, 21 Dec 2019 03:06:24 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iiV5x-0007Ls-QU for pgsql-general@lists.postgresql.org; Sat, 21 Dec 2019 03:06:23 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id xBL36I9a010212; Fri, 20 Dec 2019 22:06:18 -0500 From: Tom Lane To: "Boylan, Ross" cc: "pgsql-general@lists.postgresql.org" Subject: Re: Semi-unable to add new records to table--primary key needed? In-reply-to: References: Comments: In-reply-to "Boylan, Ross" message dated "Sat, 21 Dec 2019 02:19:45 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <10210.1576897578.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 20 Dec 2019 22:06:18 -0500 Message-ID: <10211.1576897578@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "Boylan, Ross" writes: > I have a table that seems to act for some purposes as if I can't add new= records to it. I would like to understand why that is and fix it. > The initial problem was that an MS-Access application using an ODBC driv= er (driver and database 64 bit PG 12.0) failed at = > DoCmd.GoToRecord , , acNewRec > which is basically saying to create a new record in the table. The erro= r was something like unable to create record. Unfortunately DoCmd is a bl= ack box; I can only speculate what it is doing. Aren't black-box apps fun? You might get some insight from looking into the postmaster log to see what error the database thinks it's throwing. Perhaps also turn on "log_statement =3D all" to record full details of what SQL commands the app is sending. Also, as I recall, the pgsql-odbc driver has some ability to do client-sid= e query tracing. I'm not familiar with the details of that though. regards, tom lane