pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Re: [INTERFACES] invalid command name "pg_connect" on tcl/tk script
3+ messages / 3 participants
[nested] [flat]

* invalid command name "pg_connect" on tcl/tk script
@ 1999-07-22 13:13 Ahmad Munif <munif@dnet.net.id>
  1999-07-22 01:49 ` Re: [INTERFACES] invalid command name "pg_connect" on tcl/tk script Thomas Lockhart <lockhart@alumni.caltech.edu>
  1999-07-22 15:25 ` Re: [INTERFACES] invalid command name "pg_connect" on tcl/tk script Lamar Owen <lamar.owen@wgcr.org>
  0 siblings, 2 replies; 3+ messages in thread

From: Ahmad Munif @ 1999-07-22 13:13 UTC (permalink / raw)
  To: pgsql-interfaces

hi,

i'm using redhat 6.0, postgresql 6.5 and libpgtcl.
i'm really confused, i can't make connection script
with tcl/tk to postgresql back end.

the script always wrong, and always appear
error  " invalid command name "pg_connect" 

why couldn't i write pg_connect command properly ?

what's going on ?

any one can help me to give me sample script to connect
to postgresql back end with tcl/tk ?

thanks



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: [INTERFACES] invalid command name "pg_connect" on tcl/tk script
  1999-07-22 13:13 invalid command name "pg_connect" on tcl/tk script Ahmad Munif <munif@dnet.net.id>
@ 1999-07-22 01:49 ` Thomas Lockhart <lockhart@alumni.caltech.edu>
  1 sibling, 0 replies; 3+ messages in thread

From: Thomas Lockhart @ 1999-07-22 01:49 UTC (permalink / raw)
  To: Ahmad Munif <munif@dnet.net.id>; +Cc: pgsql-interfaces

> any one can help me to give me sample script to connect
> to postgresql back end with tcl/tk ?

Look at pgaccess. A version is distributed with the Postgres source
tree, and is included in our recent beta-quality rpms.

                   - Thomas

-- 
Thomas Lockhart				lockhart@alumni.caltech.edu
South Pasadena, California



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: [INTERFACES] invalid command name "pg_connect" on tcl/tk script
  1999-07-22 13:13 invalid command name "pg_connect" on tcl/tk script Ahmad Munif <munif@dnet.net.id>
@ 1999-07-22 15:25 ` Lamar Owen <lamar.owen@wgcr.org>
  1 sibling, 0 replies; 3+ messages in thread

From: Lamar Owen @ 1999-07-22 15:25 UTC (permalink / raw)
  To: Ahmad Munif <munif@dnet.net.id>; +Cc: pgsql-interfaces

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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~1999-07-22 15:25 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-07-22 13:13 invalid command name "pg_connect" on tcl/tk script Ahmad Munif <munif@dnet.net.id>
1999-07-22 01:49 ` Thomas Lockhart <lockhart@alumni.caltech.edu>
1999-07-22 15:25 ` Lamar Owen <lamar.owen@wgcr.org>

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