Hey,
It sounds like you are re-inventing the wheel, there is already a very
complete tool writen in tcl for inserting into a postgres database. it's
called PgAccess. more info can be found at
www.flex.ro
Jeff
On Wed, 8 Sep 1999, Andrew O'Callaghan wrote:
> Hi!
> I am new to postgresql, and am trying to create an interface to the database
> so that I can insert records into a table from, say, a Tcl/Tk GUI. I am having
> trouble finding any examples where this has been done. Most interface examples
> are for extracting data from the database, ie. queries, but not for inserting
> it into the database.
>
> I found some docco about the copy command for bulk transactions, as well as
> the large-object interface using pgtcl, but am not sure if this is the right
> mechanism, since the amount of data I will be inserting is not great, or in
> bulk.
>
> Any help would be appreciated, or a pointer in the right direction of some more
> docco.
>
> regards,
> Andrew O'Callaghan
>
> ************
>
======================================================
Jeff MacDonaldjeff@hub.org webpage: http://hub.org/~jeffjeff@pgsql.com irc: bignose on EFnet
======================================================