[PATCH] Advise devs to prefer server_version_num over parsing the version

From: Craig Ringer <craig(at)2ndquadrant(dot)com>
To: pgsql-docs(at)postgresql(dot)org
Subject: [PATCH] Advise devs to prefer server_version_num over parsing the version
Date: 2015-02-17 08:38:52
Message-ID: CAMsr+YHvTLXNr1ufhtXLYjgkXHBHm5BFz=SZ5eMGgscq8JxwiQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

We've had server_version_num since 8.2.

This patch advises devs to prefer to use it instead of parsing version() or
server_version unless using libpq, in which case PQserverVersion should be
used.

--
Craig Ringer http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

Attachment Content-Type Size
0001-Advise-devs-to-use-server_version_num.patch text/x-patch 1.6 KB

Browse pgsql-docs by date

  From Date Subject
Next Message Peter Eisentraut 2015-02-23 18:01:14 Re: bgworker / SPI docs patches
Previous Message Craig Ringer 2015-02-17 08:36:14 Re: xref labels: "Chapter 33", "Section 33.2"