TEXT and BIGINT don't play nicely together, especially in PostgreSQL 8.3
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 25 Nov 2008 22:47:30 +0000 (22:47 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 25 Nov 2008 22:47:30 +0000 (22:47 +0000)
Perhaps this mismatch is part of the reason for some reported sluggishness in Vandelay import in 1.4?

git-svn-id: svn://svn.open-ils.org/ILS/trunk@11350 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/sql/Pg/012.schema.vandelay.sql

index 737b3ec..dbdd157 100644 (file)
@@ -69,7 +69,7 @@ CREATE TABLE vandelay.import_item_attr_definition (
 
 CREATE TABLE vandelay.bib_queue (
        queue_type          TEXT        NOT NULL DEFAULT 'bib' CHECK (queue_type = 'bib'),
-       item_attr_def   TEXT    REFERENCES vandelay.import_item_attr_definition (id) ON DELETE SET NULL DEFERRABLE INITIALLY DEFERRED,
+       item_attr_def   BIGINT REFERENCES vandelay.import_item_attr_definition (id) ON DELETE SET NULL DEFERRABLE INITIALLY DEFERRED,
        CONSTRAINT vand_bib_queue_name_once_per_owner_const UNIQUE (owner,name,queue_type)
 ) INHERITS (vandelay.queue);
 ALTER TABLE vandelay.bib_queue ADD PRIMARY KEY (id);