Unix Technical Forum

Re: Exposing DEFAULT_PGSOCKET_DIR via a libpq function?

This is a discussion on Re: Exposing DEFAULT_PGSOCKET_DIR via a libpq function? within the pgsql Hackers forums, part of the PostgreSQL category; --> Jeremy Drake wrote: > > When I encounter such behavior, my tool of choice tends to be > strace(1) ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-12-2008, 02:47 AM
Larry Rosenman
 
Posts: n/a
Default Re: Exposing DEFAULT_PGSOCKET_DIR via a libpq function?

Jeremy Drake wrote:
>
> When I encounter such behavior, my tool of choice tends to be
> strace(1) rather than strings(1). That way, you know what exactly
> the thing it wants that it is not finding is...

That assumes that the user has strace(1) installed. Yes, I've run into
systems
that don't have it, and have no idea where the RPM/etc is for it .

There is also the differences between Linux (strace), SVR4 (truss), *BSD
(ktrace),
etc, whereas a commandline switch to psql and the one-line function I
proposed would
be standard across at least all the unix-like systems (since I think that
the windows code
doesn't enable HAVE_UNIX_SOCKETS, and therefore even if the library returns
a string, it's
useless.

LER


--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 512-248-2683 E-Mail: ler@lerctr.org
US Mail: 430 Valona Loop, Round Rock, TX 78681-3683 US


---------------------------(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
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 01:39 AM.


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