pg_catversion builtin function

From: Jesper Pedersen <jesper(dot)pedersen(at)redhat(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: pg_catversion builtin function
Date: 2016-12-13 13:43:12
Message-ID: 28398183-da6f-3bd4-794b-3594871b4209@redhat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Hackers,

Attached is a new builtin function that exposes the CATALOG_VERSION_NO
constant under the pg_catversion() function, e.g.

test=# SELECT pg_catversion();
pg_catversion
---------------
201612121
(1 row)

Although it mostly useful during the development cycle to verify if
dump/restore is needed; it could have other use-cases.

I'm unsure of the OID assignment rules - feel free to point me towards
information regarding this.

I'll register this patch with the next CF.

Best regards,
Jesper

Attachment Content-Type Size
0001-pg_catversion-builtin-function_v1.patch text/x-patch 3.0 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2016-12-13 13:43:22 Re: Re: [sqlsmith] FailedAssertion("!(XLogCtl->Insert.exclusiveBackup)", File: "xlog.c", Line: 10200)
Previous Message Michael Paquier 2016-12-13 13:24:37 Re: Re: [sqlsmith] FailedAssertion("!(XLogCtl->Insert.exclusiveBackup)", File: "xlog.c", Line: 10200)