Package Modeling :: Package DatabaseAdaptors :: Package PostgresqlAdaptorLayer :: Module pg_utils
[show private | hide private]
[frames | no frames]

Module Modeling.DatabaseAdaptors.PostgresqlAdaptorLayer.pg_utils

Postgresql Adaptor Layer's utils

Central point for determining postgresql specifics, like the version of the pg-server in use.

CVS information

$Id: pg_utils.py,v 1.4 2004/08/02 19:58:54 sbigaret Exp $

Function Summary
  postgresql_server_version()
Returns the version of the pg-server currently in use.

Function Details

postgresql_server_version()

Returns the version of the pg-server currently in use. It currently checks the environmement variable 'MDL_POSTGRESQL_SERVER_VERSION'.

Return value:

  • if MDL_POSTGRESQL_SERVER_VERSION is not set, defaults to '7.2'
  • if it is set and equals to '7.3', returns '7.3', otherwise return the default value '7.2'

Generated by Epydoc 2.1 on Sat Mar 4 13:36:25 2006 http://epydoc.sf.net