pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bob Kruger <bkruger@mindspring.com>
To: pgsql-sql@postgresql.org
Subject: Incrementing a Serial Fields
Date: Mon, 09 Nov 1998 11:09:08 -0600
Message-ID: <3.0.5.32.19981109110908.0082c7d0@mindspring.com> (raw)

	
First off, I would like to take this opportunity to thank everyone who
worked on the new postgres v6.4.  I have it up and working here, and most
all appears well.

I do have two questions.  Firstly, I have one table that is updated from a
text file.  This table also has a serial field that is incremented with
each new record.  Is there a way to use the copy command to have that field
automatically updated - e.g. copy table_one from '/data/files/input.txt'
using delimiters '|' ?

So far, I can get this text file to import just fine when using a table
without a serial field, but as of yet not had any luck in importing it into
a table that has a serial field.

I suppose that I could parse the file and do an "insert into etc....  ",
but I fear that would be a little processor intensive for a 12000 line file.

The second question is that I noticed the ODBC bug (feature?) when linking
Postgres to MS Access still exists.  This bug occurs when linking a MS
Access table to a Postgres table, and identifying more than one field as
the unique record identifier.  This makes Postgres run until it exhausts
all available memory.  Does anyone know a way around this?  Enabling read
only ODBC is a feature I would like to make available, but I do not want
the possibility of postgres crashing because of an error on the part of a
MS Access user.

BTW - Having capability to be linked to an Access database is not an
option.  The current project I am working on calls for that, so it is a
necessary evil that I hav to live with.

Thanks in advance for any assistance.

Regards - Bob Kruger




Message-ID: <3.0.5.32.19981109110908.0082c7d0@mindspring.com>
Permalink:  ../3.0.5.32.19981109110908.0082c7d0@mindspring.com/
Also on:    postgresql.org/message-id/3.0.5.32.19981109110908.0082c7d0@mindspring.com

 · 

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-sql@postgresql.org
  Cc: bkruger@mindspring.com
  Subject: Re: Incrementing a Serial Fields
  In-Reply-To: <3.0.5.32.19981109110908.0082c7d0@mindspring.com>
  References: <3.0.5.32.19981109110908.0082c7d0@mindspring.com>

* 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