Unix Technical Forum

psql for winxp?

This is a discussion on psql for winxp? within the Pgsql General forums, part of the PostgreSQL category; --> Hi, I would like to install a "psql" command line program on my winxp box. ( something that acts ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql General

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-09-2008, 10:16 AM
Jerry LeVan
 
Posts: n/a
Default psql for winxp?

Hi,

I would like to install a "psql" command line program on
my winxp box. ( something that acts like psql on a unix box.)

I hope to embed such a program in my Tcl/Tk and Python
PostgreSQL browsers so I can more offer more functionality
in the browsers...

My development environment on XP is restricted to
scripting languages ( tcl and python ).

Any candidates/suggestions?

Jerry



---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-09-2008, 10:16 AM
John DeSoi
 
Posts: n/a
Default Re: psql for winxp?

Hi Jerry,

You can use psql directly and communicate with it using a pipe
stream. On Windows I believe this is equivalent to calling
CreateProcess and CreatePipe which results in a bidirectional stream.
This is how pgEdit makes use of psql for the editor.

I'm not familiar with Tcl or Python, but hopefully they have
facilities to do this.

BTW, the psql binary is part of the Windows PostgreSQL installer.



On Jun 19, 2006, at 5:53 PM, Jerry LeVan wrote:

> I would like to install a "psql" command line program on
> my winxp box. ( something that acts like psql on a unix box.)
>
> I hope to embed such a program in my Tcl/Tk and Python
> PostgreSQL browsers so I can more offer more functionality
> in the browsers...
>
> My development environment on XP is restricted to
> scripting languages ( tcl and python ).
>
> Any candidates/suggestions?






John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL


---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-09-2008, 10:16 AM
Jerry LeVan
 
Posts: n/a
Default Re: psql for winxp?

Hi John,

Is it possible to have the installer only emplace psql and the necessary
support libs?

Jerry

On Jun 19, 2006, at 8:36 PM, John DeSoi wrote:

> Hi Jerry,
>
> You can use psql directly and communicate with it using a pipe
> stream. On Windows I believe this is equivalent to calling
> CreateProcess and CreatePipe which results in a bidirectional
> stream. This is how pgEdit makes use of psql for the editor.
>
> I'm not familiar with Tcl or Python, but hopefully they have
> facilities to do this.
>
> BTW, the psql binary is part of the Windows PostgreSQL installer.
>
>
>
> On Jun 19, 2006, at 5:53 PM, Jerry LeVan wrote:
>
>> I would like to install a "psql" command line program on
>> my winxp box. ( something that acts like psql on a unix box.)
>>
>> I hope to embed such a program in my Tcl/Tk and Python
>> PostgreSQL browsers so I can more offer more functionality
>> in the browsers...
>>
>> My development environment on XP is restricted to
>> scripting languages ( tcl and python ).
>>
>> Any candidates/suggestions?

>
>
>
>
>
> John DeSoi, Ph.D.
> http://pgedit.com/
> Power Tools for PostgreSQL
>



---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-09-2008, 10:17 AM
John DeSoi
 
Posts: n/a
Default Re: psql for winxp?

Jerry,

On Jun 19, 2006, at 10:47 PM, Jerry LeVan wrote:

> Is it possible to have the installer only emplace psql and the
> necessary
> support libs?



I'm not sure offhand. The installer has customization options, so it
may be possible. But if not, it is probably easy enough just to
install it, copy the files that you need, and then uninstall it.


John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL


---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-09-2008, 10:17 AM
Magnus Hagander
 
Posts: n/a
Default Re: psql for winxp?

> > Is it possible to have the installer only emplace psql and the
> > necessary support libs?

>
>
> I'm not sure offhand. The installer has customization
> options, so it may be possible. But if not, it is probably
> easy enough just to install it, copy the files that you need,
> and then uninstall it.


You can do it, but it may not be the easiest way. But try it - just
deselect everythign except psql. You can also just grab the
binaries_no_installer.zip file and get them from there.

(Notw that psql depends on several DLL files that you'll also need to
add, such as libpq, openssl and gettext)

//Magnus

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:28 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com