pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Boylan, Ross <Ross.Boylan@ucsf.edu>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Semi-unable to add new records to table--primary key needed?
Date: Fri, 20 Dec 2019 22:06:18 -0500
Message-ID: <10211.1576897578@sss.pgh.pa.us> (raw)
In-Reply-To: <DM6PR05MB5740B3492AD0AEE1EF5600DC872C0@DM6PR05MB5740.namprd05.prod.outlook.com>
References: <DM6PR05MB5740B3492AD0AEE1EF5600DC872C0@DM6PR05MB5740.namprd05.prod.outlook.com>

"Boylan, Ross" <Ross.Boylan@ucsf.edu> 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 driver (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 error was something like unable to create record.  Unfortunately DoCmd is a black 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 = 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-side
query tracing.  I'm not familiar with the details of that though.

			regards, tom lane





view thread (15+ messages)  latest in thread

Message-ID: <10211.1576897578@sss.pgh.pa.us>
Permalink:  ../10211.1576897578@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/10211.1576897578@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, Ross.Boylan@ucsf.edu
  Subject: Re: Semi-unable to add new records to table--primary key needed?
  In-Reply-To: <10211.1576897578@sss.pgh.pa.us>
  References: <DM6PR05MB5740B3492AD0AEE1EF5600DC872C0@DM6PR05MB5740.namprd05.prod.outlook.com> <10211.1576897578@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox