From: | "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | David Fetter <david(at)fetter(dot)org>, pgsql-hackers(at)postgresql(dot)org, Greg Sabino Mullane <greg(at)turnstep(dot)com>, pgsql-patches(at)postgresql(dot)org |
Subject: | Re: New variable server_version_num |
Date: | 2006-08-01 17:37:48 |
Message-ID: | 20060801173748.GO40481@pervasive.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers pgsql-patches |
On Sun, Jul 30, 2006 at 11:27:33AM -0400, Tom Lane wrote:
> David Fetter <david(at)fetter(dot)org> writes:
> > On Sat, Jul 29, 2006 at 09:44:10PM -0400, Tom Lane wrote:
> >> The correct solution is for client-side libraries to provide the
> >> feature.
>
> > Not if the app is written in SQL, as the bootstrap, regression test,
> > etc. code for modules frequently is.
>
> SQL doesn't really have any conditional ability strong enough to deal
> with existence or non-existence of features. What are you hoping to
> do, a CASE expression? Both arms of the CASE still have to parse,
> so I remain unconvinced that there are real world uses.
There's also plpgsql, which afaik has no way to get the version number
(other than slogging though the output of version()).
--
Jim C. Nasby, Sr. Engineering Consultant jnasby(at)pervasive(dot)com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461
From | Date | Subject | |
---|---|---|---|
Next Message | Karsten Hilbert | 2006-08-01 17:41:27 | Re: LISTEN considered dangerous |
Previous Message | Karen Hill | 2006-08-01 17:18:45 | money type depreciated? |
From | Date | Subject | |
---|---|---|---|
Next Message | David Fetter | 2006-08-01 17:43:51 | Re: New variable server_version_num |
Previous Message | Alvaro Herrera | 2006-08-01 17:30:38 | Re: GENERATED ... AS IDENTITY, Was: Re: Feature Freeze |
From | Date | Subject | |
---|---|---|---|
Next Message | David Fetter | 2006-08-01 17:43:51 | Re: New variable server_version_num |
Previous Message | Andrew Dunstan | 2006-08-01 14:57:29 | Re: [HACKERS] float8 regression failure (HEAD, cygwin) |