python - lo: Add PG version utility.

From: jwp(at)pgfoundry(dot)org (James William Pye)
To: pgsql-committers(at)postgresql(dot)org
Subject: python - lo: Add PG version utility.
Date: 2005-05-12 21:26:56
Message-ID: 20050512212656.3DD9F1125FFF@pgfoundry.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Add PG version utility. Parses PG versions to a sys.version_info style tuple and
can output in XML, sh, or python(tuple.__repr__) formats.
(/be will probably depend on this instead of its internal version parser)

Provides command line interface as well:
$ python -m postgresql/utility/version 8.1devel
PG_VERSION_MAJOR=8
PG_VERSION_MINOR=1
PG_VERSION_PATCH=0
PG_VERSION_STATE=devel
PG_VERSION_LEVEL=0

Added Files:
-----------
lo/postgresql/utility:
version.py (r1.1)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/lo/postgresql/utility/version.py?rev=1.1&content-type=text/x-cvsweb-markup)

Browse pgsql-committers by date

  From Date Subject
Next Message James William Pye 2005-05-12 21:37:04 python - lo: Add standard, optparse, client options module.
Previous Message Tom Lane 2005-05-12 20:41:57 pgsql: Remove some unnecessary code: since ExecMakeFunctionResultNoSets