Re: [PATCHES] New variable server_version_num
Re: [PATCHES] New variable server_version_num
От:
David Fetter <david@fetter.org>
Дата:
On Sat, Jul 29, 2006 at 09:14:16PM -0400, Greg Sabino Mullane wrote:
> Today on IRC David Fetter and some others were discussing version
> numbers and we realized that although libpq now provides the version
> of Postgres as a number, this is still a wheel that is being
> reinvented by apps many times over, as it is not available any other
> way. Hence, a small patch to provide a new variable
> "server_version_num", which is almost the same as "server_version"
> but uses the handy PG_VERSION_NUM which allows apps to do things
> like if ($version >= 80200) without having to parse apart the value
> of server_version themselves.
What's the status on applying this patch?
Cheers,
D
--
David Fetter http://fetter.org/
phone: +1 415 235 3778 AIM: dfetter666
Skype: davidfetter
Remember to vote!
Re: [PATCHES] New variable server_version_num
От:
Bruce Momjian <bruce@momjian.us>
Дата:
David Fetter wrote: > On Sat, Jul 29, 2006 at 09:14:16PM -0400, Greg Sabino Mullane wrote: > > Today on IRC David Fetter and some others were discussing version > > numbers and we realized that although libpq now provides the version > > of Postgres as a number, this is still a wheel that is being > > reinvented by apps many times over, as it is not available any other > > way. Hence, a small patch to provide a new variable > > "server_version_num", which is almost the same as "server_version" > > but uses the handy PG_VERSION_NUM which allows apps to do things > > like if ($version >= 80200) without having to parse apart the value > > of server_version themselves. > > What's the status on applying this patch? It is still in my mailbox. I am thinking it should be added. -- Bruce Momjian bruce@momjian.us EnterpriseDB http://www.enterprisedb.com + If your life is a hard drive, Christ can be your backup. +