From: Lamar Owen <lamar.owen@wgcr.org>
To: Ahmad Munif <munif@dnet.net.id>
Cc: pgsql-interfacespostgresqlorg <pgsql-interfaces@postgreSQL.org>
Subject: Re: [INTERFACES] invalid command name "pg_connect" on tcl/tk script
Date: Thu, 22 Jul 1999 11:25:11 -0400
Message-ID: <379737D7.FFF501F8@wgcr.org> (raw)
References: <379718F7.EB40BF18@dnet.net.id>
Ahmad Munif wrote:
> what's going on ?
>
> any one can help me to give me sample script to connect
> to postgresql back end with tcl/tk ?
Read the pgaccess script -- in particular, the section that loads
libpgtcl.so. This whole script is an excellent example of accessing
PostgreSQL from tcl/tk. If you do not have the pgaccess script, download
the pgaccess tarball from ftp://www.flex.ro/pub/pgaccess, or from my
server at http://206.74.232.196/postgres. You will be glad you looked
over this script.
Something like:
load libpgtcl.so
THEN you can use pg_connect et al.
Lamar Owen
WGCR Internet Radio
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 using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: lamar.owen@wgcr.org, munif@dnet.net.id
Subject: Re: [INTERFACES] invalid command name "pg_connect" on tcl/tk script
In-Reply-To: <379737D7.FFF501F8@wgcr.org>
* 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