Re: Re: Remote PostgreSQL database - C/C++ program / Unix / Required Libraries

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Re: Remote PostgreSQL database - C/C++ program / Unix / Required Libraries
Date: 2014-11-30 22:16:43
Message-ID: 547B974B.7050903@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 11/30/2014 2:03 PM, Léa Massiot wrote:
> I actually asked the question out of curiosity.
> (And also because I was working on a machine with no PostgreSQL installed. I
> was wondering if I had to install a whole PostgreSQL system or not).

In the RH/CentOS/Fedora world, you CAN install just the runtime
libraries and -devel packages (postgresqlXY-libs and -devel) to do C
programming. I'm not sure if the debian/ubuntu packages have the same
granularity.

the 'whole postgres system' is really rather compact. a client-only
user could well need not only the runtime library libpq.so and
associated .h files, but also need pg_config, psql, pg_dump,
pg_restore... about the only parts a client-only user wouldn't use
would be the actual server 'postgres', and pg_ctl, these files combined
are just a few megabytes.

the full install of everything including contributed libraries is 34MB
on my CentOS 6 64bit server....

--
john r pierce 37N 122W
somewhere on the middle of the left coast

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2014-11-30 22:41:14 Re: JSON_AGG produces extra square brakets
Previous Message Stephen Woodbridge 2014-11-30 22:07:35 Re: to_char(timestamp, format) is changing the year!