Re: querying the version of libpq - Mailing list pgsql-general

From Massa, Harald Armin
Subject Re: querying the version of libpq
Date
Msg-id AANLkTiks2FL37fwsToZ-qYj4BAiWG_NnOo5NBmHpjUPj@mail.gmail.com
Whole thread Raw
In response to Re: querying the version of libpq  (Dmitriy Igrishin <dmitigr@gmail.com>)
Responses Re: querying the version of libpq
List pgsql-general
Dmitriy,

Again, I suggest PQlibVersion() or PQversion() instead of PQlibpqVersion().

Why this "pq" redundancy in name? Waste of bytes.

the first PQ qualifies the name-space "those are PostgresQl functions".
the library is called libpq, and we are explicitly asking for the version of libpq; not of any other library that may or may not be connected with libpq 

(in some compilations there is linkage to some system libraries, which have versions of their own. in other implementations there are wrappers around the libpq-libraray, which have their own version to. Oh, and there is open-ssl which may be mixed into  the whole party)

So 2 bytes of source-code / linker redundancy in times where smartphones sport 12Gigabyte should be payed....

Harald
-- 
GHUM GmbH
Harald Armin Massa
Spielberger Straße 49
70435 Stuttgart
0173/9409607

Amtsgericht Stuttgart, HRB 734971
-
persuadere.
et programmare

pgsql-general by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: Adding a New Column Specifically In a Table
Next
From: Dmitriy Igrishin
Date:
Subject: Re: querying the version of libpq