From: | Doug McNaught <doug(at)mcnaught(dot)org> |
---|---|
To: | Olivier Guilyardi <ml(at)xung(dot)org> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Listing views |
Date: | 2004-08-10 14:58:57 |
Message-ID: | 87d61zghu6.fsf@asmodeus.mcnaught.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Olivier Guilyardi <ml(at)xung(dot)org> writes:
> Okay, that's what I thought : an initial little query to identify the server
> version, so that subsequent queries can be adapted accordingly...
>
> But, since this "What Postgresql version is this ?" query is
> silently performed by the library I'm interested in, what the host
> application is not supposed to know, it must be ensured that it's
> not going to break : is version() the way to go ? Could there be
> some permission issues with very restrictive user accounts ? Some
> better _only-one-query_ way to identify the server version/features
> ?
'SELECT version();' should work. There will be no permission issues
with calling that function unless you set the database up that way--it
has PUBLIC execute permission by default.
-Doug
--
Let us cross over the river, and rest under the shade of the trees.
--T. J. Jackson, 1863
From | Date | Subject | |
---|---|---|---|
Next Message | Liam Lesboch | 2004-08-10 15:09:20 | Replication options? |
Previous Message | Peter Eisentraut | 2004-08-10 14:35:20 | Re: nested transaction |