Christopher B. Browne's Home Page
cbbrowne@acm.org

8.25. checkmoduleversion()

Function Properties

PLPGSQLtext
Inline test function that verifies that slonik request for STORE NODE/INIT CLUSTER is being run against a conformant set of schema/functions.
    declare
      moduleversion	text;
    begin
      select into moduleversion getModuleVersion();
      if moduleversion <> '@MODULEVERSION@' then
          raise exception 'Slonik version: @MODULEVERSION@ != Slony-I version in PG build %',
                 moduleversion;
      end if;
      return null;
    end;

Google
Contact me at cbbrowne@acm.org