Tue Sep 14 03:50:14 PDT 2004
- Previous message: [Slony1-commit] By wieck: Added functions to determine the current loaded slony schema.
- Next message: [Slony1-commit] By cbbrowne: Cause the "show args" to indicate that what it expects for
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Log Message: ----------- Added functions to determine the current loaded slony schema. Jan Modified Files: -------------- slony1-engine/src/backend: slony1_funcs.sql (r1.24 -> r1.25) -------------- next part -------------- Index: slony1_funcs.sql =================================================================== RCS file: /usr/local/cvsroot/slony1/slony1-engine/src/backend/slony1_funcs.sql,v retrieving revision 1.24 retrieving revision 1.25 diff -Lsrc/backend/slony1_funcs.sql -Lsrc/backend/slony1_funcs.sql -u -w -r1.24 -r1.25 --- src/backend/slony1_funcs.sql +++ src/backend/slony1_funcs.sql @@ -225,6 +225,64 @@ -- ---------------------------------------------------------------------- +-- FUNCTION slonyVersionMajor() +-- ---------------------------------------------------------------------- +create or replace function @NAMESPACE at .slonyVersionMajor() +returns int4 +as ' +begin + return 1; +end; +' language plpgsql; +comment on function @NAMESPACE at .slonyVersionMajor () is + 'Returns the major version number of the slony schema'; + + +-- ---------------------------------------------------------------------- +-- FUNCTION slonyVersionMinor() +-- ---------------------------------------------------------------------- +create or replace function @NAMESPACE at .slonyVersionMinor() +returns int4 +as ' +begin + return 1; +end; +' language plpgsql; +comment on function @NAMESPACE at .slonyVersionMinor () is + 'Returns the minor version number of the slony schema'; + + +-- ---------------------------------------------------------------------- +-- FUNCTION slonyVersionPatchlevel() +-- ---------------------------------------------------------------------- +create or replace function @NAMESPACE at .slonyVersionPatchlevel() +returns int4 +as ' +begin + return 0; +end; +' language plpgsql; +comment on function @NAMESPACE at .slonyVersionPatchlevel () is + 'Returns the version patch level of the slony schema'; + + +-- ---------------------------------------------------------------------- +-- FUNCTION slonyVersion() +-- ---------------------------------------------------------------------- +create or replace function @NAMESPACE at .slonyVersion() +returns text +as ' +begin + return '''' || @NAMESPACE at .slonyVersionMajor() || ''.'' + || @NAMESPACE at .slonyVersionMinor() || ''.'' + || @NAMESPACE at .slonyVersionPatchlevel(); +end; +' language plpgsql; +comment on function @NAMESPACE at .slonyVersion() is + 'Returns the version number of the slony schema'; + + +-- ---------------------------------------------------------------------- -- FUNCTION initializeLocalNode (no_id, no_comment) -- -- Initializes a new node.
- Previous message: [Slony1-commit] By wieck: Added functions to determine the current loaded slony schema.
- Next message: [Slony1-commit] By cbbrowne: Cause the "show args" to indicate that what it expects for
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list