Re: querying the version of libpq

From: Dmitriy Igrishin <dmitigr(at)gmail(dot)com>
To: "Massa, Harald Armin" <chef(at)ghum(dot)de>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: querying the version of libpq
Date: 2010-10-14 12:14:04
Message-ID: AANLkTikA9e7_JWszj8Y6g580e6RGnPCi97RVUhHvW0wD@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

2010/10/14 Massa, Harald Armin <chef(at)ghum(dot)de>

> 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
>
If "PQ" is "namespace", so PQlibVersion() will never conflict with other
libraries.

>
> (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....
>
> I don't worry about source-code or linker. I want correctness.
Why libpq does not have PQlibpqConnect() ? How about other libraries linked
to libpq ?
Waste of bytes.

Harald
> --
> GHUM GmbH
> Harald Armin Massa
> Spielberger Straße 49
> 70435 Stuttgart
> 0173/9409607
>
> Amtsgericht Stuttgart, HRB 734971
> -
> persuadere.
> et programmare
>

--
// Dmitriy.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Thom Brown 2010-10-14 12:20:23 Re: Adding a New Column Specifically In a Table
Previous Message Massa, Harald Armin 2010-10-14 12:08:56 Re: querying the version of libpq

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2010-10-14 12:17:54 Re: wip: functions median and percentile
Previous Message Massa, Harald Armin 2010-10-14 12:08:56 Re: querying the version of libpq