Re: Backward compatibility

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Igor Korot <ikorot01(at)gmail(dot)com>
Cc: Andreas Kretschmer <andreas(at)a-kretschmer(dot)de>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Backward compatibility
Date: 2017-07-21 02:42:33
Message-ID: CAKFQuwZdrKmbb3Nzs=QktaA8Umq0CueuhedS8aEpfTC=fgONZQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Jul 20, 2017 at 7:23 PM, Igor Korot <ikorot01(at)gmail(dot)com> wrote:

> On Thu, Jul 20, 2017 at 10:19 PM, Andreas Kretschmer
> <andreas(at)a-kretschmer(dot)de> wrote:
> >
> >>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?
>

​SHOW server_version_num;

90124​ should be the result (don't have that version installed to
copy-paste)

90506 is the version I have at my fingertips.

David J.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Igor Korot 2017-07-21 02:44:14 Re: Backward compatibility
Previous Message Amit Langote 2017-07-21 02:35:56 Re: [GENERAL] huge RAM use in multi-command ALTER of table heirarchy