Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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)

pgsql-committers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group