mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Moved PostgreSQL-specific scripts into community-visible repository project
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@17114 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
* Solution to PostgreSQL issue:
|
||||
* function information_schema._pg_keypositions() does not exist
|
||||
* Taken from: http://archives.postgresql.org/pgsql-general/2005-12/msg00060.php
|
||||
* Author: Jason Long
|
||||
* Tested against PostgreSQL 8.2
|
||||
* First seen during upgrade testing of PostgreSQL from Alfresco 1.4.3 to 2.0
|
||||
*/
|
||||
SET search_path TO information_schema, public;
|
||||
CREATE FUNCTION _pg_keypositions() RETURNS SETOF integer
|
||||
LANGUAGE sql
|
||||
IMMUTABLE
|
||||
AS 'select g.s
|
||||
from generate_series(1,current_setting(''max_index_keys'')::int,1)
|
||||
as g(s)';
|
Reference in New Issue
Block a user