Re: Example of a pg_gethostname() function. Feedback?

From: Craig Ringer <ringerc(at)ringerc(dot)id(dot)au>
To: bricklen <bricklen(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Example of a pg_gethostname() function. Feedback?
Date: 2011-12-24 04:22:12
Message-ID: 4EF55374.4020208@ringerc.id.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 24/12/2011 2:47 AM, bricklen wrote:
> I had a need recently to get the server hostname of some databases
> that we were unit-testing and couldn't find a built-in function for
> it. One of my coworkers put together a C function that seems to work
> well.
> Does anyone have any suggestions or improvements to the code below?
Only that it might be less hassle to wrap gethostname from pl/perl or
pl/python rather than adding a new C function, particularly if this is
only for DB testing and is not performance critical.

--
Craig Ringer

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message saqib11 2011-12-24 08:23:57 pgrouting extension with quantum gis
Previous Message Ben Chobot 2011-12-24 01:47:37 Re: Initdb fails on openwrt in "creating template1 database"