Re: Hiding name and version - Mailing list pgsql-general

From Jerry Sievers
Subject Re: Hiding name and version
Date
Msg-id 86mvwktrgp.fsf@jerry.enova.com
Whole thread Raw
In response to Re: Hiding name and version  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Hiding name and version
List pgsql-general
Tom Lane <tgl@sss.pgh.pa.us> writes:

> "Joshua D. Drake" <jd@commandprompt.com> writes:
>
>> On 09/17/2015 10:32 AM, Quiroga, Damian wrote:
>>> Is it possible to prevent users from running the “version” function or
>>> all system information functions? If so, how?
>
>> You could probably revoke access to the function(s) (I haven't tried it
>> because it seems very silly).
>
> I believe revoking public execute access would work, but I concur that
> this specific request seems entirely pointless.  Anyone with SQL-level
> access to the server, and a copy of the release notes, can soon determine
> what version they are talking to by testing for the presence or absence of
> assorted features and bugs.
>
> Keep in mind also that pg_dump or pg_upgrade would not preserve such
> alterations to system functions.

And let's not forget...

show server_version or server_version_num;

Oh, and interactive psql without -q prints server version in the banner :-)
>
>             regards, tom lane

--
Jerry Sievers
Postgres DBA/Development Consulting
e: postgres.consulting@comcast.net
p: 312.241.7800


pgsql-general by date:

Previous
From: Michael Chau
Date:
Subject: Re: Broken primary key after backup restore.
Next
From: Kong Man
Date:
Subject: search_path not reloaded via unix socket connections