Re: Backward compatibility

From: Igor Korot <ikorot01(at)gmail(dot)com>
To: Andreas Kretschmer <andreas(at)a-kretschmer(dot)de>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Backward compatibility
Date: 2017-07-21 02:23:57
Message-ID: CA+FnnTxR9=QNsiDi4fGSQCM0qbgKF-CDbVz8-9uLdeC8kG4KGw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi, guys,

On Thu, Jul 20, 2017 at 10:19 PM, Andreas Kretschmer
<andreas(at)a-kretschmer(dot)de> wrote:
> On 21 July 2017 04:13:47 GMT+02:00, Igor Korot <ikorot01(at)gmail(dot)com> wrote:
>>Hi, ALL,
>>According to the documentation PostgreSQL 9.6 (latest) supports
>>
>>CREATE INDEX IF NOT EXIST
>>
>>However, the version 9.4 and below supports only
>>
>>CREATE INDEX.
>>
>>Is there a query or a libpg function which can return the version of
>>the server I'm running?
>>
>>
>
> Select version();

Here is the results:

draft=# SELECT version();

version
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
PostgreSQL 9.1.24 on x86_64-apple-darwin, compiled by
i686-apple-darwin10-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc.
build 5658) (LLVM build 2335.6), 64-bit
(1 row)

Is there a way to get just "9.1.24" without everything else?

Or maybe the server can perform parsing for me?

Thank you.

>
>
> Regards, Andreas
>
>
> --
> 2ndQuadrant - The PostgreSQL Support Company

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Amit Langote 2017-07-21 02:35:56 Re: [GENERAL] huge RAM use in multi-command ALTER of table heirarchy
Previous Message David G. Johnston 2017-07-21 02:23:47 Re: Backward compatibility