Added version_sql() function and consistency check of sql version

This commit is contained in:
Daniele Varrazzo
2012-11-15 23:37:09 +00:00
parent 1bcaf267b3
commit deaae7dd72
4 changed files with 31 additions and 5 deletions

View File

@ -290,6 +290,13 @@ ERROR: program 'pg_repack V1' does not match database library 'pg_repack V2'
database; if they are what expected you may need to repeat pg_repack
installation.
ERROR: extension 'pg_repack V1' required, found extension 'pg_repack V2'
The SQL extension found in the database does not match the version
required by the pg_repack program.
You should drop the extension from the database and reload it as described
in the installation_ section.
ERROR: relation "table" has no primary key
The target table doesn't have PRIMARY KEY.