
Hi,
today I tested OpenTRS with PostgreSQL. And after a few changes
(mostly in OpenTRS-schema.postgresql.sql and initial_insert.sql)
it works fine.
If you want to use it, install 0.5 Beta5 and update
Kernel/Modules/AgentQueueView.pm
Kernel/Modules/AgentZoom.pm
install/database/OpenTRS-schema.postgresql.sql
install/database/initial_insert.sql
from the current CVS tree.
Bye,
Martin
--
Martin Edenhofer - http://martin.edenhofer.de/
--
"Security is a process, not a product." - Bruce Schneider
with kind regards
Martin
--
Martin Edenhofer -

Martin, I attempted to follow the instuctions in README.database with the replacement files OpenTRS-schema.postgresql.sql and initial_insert.sql along with the *.pm files from the CVS tree. Then I proceeded to create a user 'otrs' with home directory /opt/OpenTRS then created otrs database with 'createdb otrs' (as root). I am using PostgreSQL 7.2.1 on i686-pc-linux-gnu, compiled by GCC 2.95.4 When I attempt to insert the database (ran 'createuser root' and 'otrs' as well) using 'psql otrs < OpenTRS-schema.postgresql.sql', I get the following errors (sorry for this being so long), and most of the tables do not get created (it does not seem to like to check for tables that don't exist and does not like the NOT NULL statements either) : -------------------------------------------------------------- ERROR: sequence "valid_id_seq" does not exist ERROR: table "valid" does not exist ERROR: parser: parse error at or near "NOT" ERROR: sequence "ticket_priority_id_seq" does not exist ERROR: table "ticket_priority" does not exist ERROR: parser: parse error at or near "NOT" ERROR: sequence "ticket_lock_type_id_seq" does not exist ERROR: table "ticket_lock_type" does not exist ERROR: parser: parse error at or near "NOT" ERROR: sequence "system_user_id_seq" does not exist ERROR: table "system_user" does not exist ERROR: parser: parse error at or near "NOT" ERROR: table "user_preferences" does not exist NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index 'user_preferences_pkey' for table 'user_preferences' CREATE ERROR: sequence "groups_id_seq" does not exist ERROR: table "groups" does not exist ERROR: parser: parse error at or near "NOT" ERROR: sequence "group_user_id_seq" does not exist ERROR: table "group_user" does not exist ERROR: parser: parse error at or near "NOT" ERROR: sequence "personal_queues_id_seq" does not exist ERROR: table "personal_queues" does not exist ERROR: parser: parse error at or near "NOT" ERROR: sequence "language_id_seq" does not exist ERROR: table "language" does not exist ERROR: parser: parse error at or near "NOT" ERROR: sequence "theme_id_seq" does not exist ERROR: table "theme" does not exist ERROR: parser: parse error at or near "NOT" ERROR: sequence "charset_id_seq" does not exist ERROR: table "charset" does not exist ERROR: parser: parse error at or near "NOT" ERROR: sequence "ticket_state_id_seq" does not exist ERROR: table "ticket_state" does not exist ERROR: parser: parse error at or near "NOT" ERROR: sequence "salutation_id_seq" does not exist ERROR: table "salutation" does not exist ERROR: parser: parse error at or near "NOT" ERROR: sequence "signature_id_seq" does not exist ERROR: table "signature" does not exist ERROR: parser: parse error at or near "NOT" ERROR: sequence "system_address_id_seq" does not exist ERROR: table "system_address" does not exist ERROR: parser: parse error at or near "NOT" ERROR: sequence "follow_up_possible_id_seq" does not exist ERROR: table "follow_up_possible" does not exist ERROR: parser: parse error at or near "NOT" ERROR: sequence "queue_id_seq" does not exist ERROR: table "queue" does not exist ERROR: parser: parse error at or near "NOT" ERROR: sequence "ticket_id_seq" does not exist ERROR: table "ticket" does not exist ERROR: parser: parse error at or near "NOT" ERROR: parser: parse error at or near "(" ERROR: parser: parse error at or near "(" ERROR: parser: parse error at or near "(" ERROR: sequence "ticket_history_id_seq" does not exist ERROR: table "ticket_history" does not exist ERROR: parser: parse error at or near "NOT" ERROR: parser: parse error at or near "(" ERROR: sequence "ticket_history_type_id_seq" does not exist ERROR: table "ticket_history_type" does not exist ERROR: parser: parse error at or near "NOT" ERROR: sequence "article_type_id_seq" does not exist ERROR: table "article_type" does not exist ERROR: parser: parse error at or near "NOT" ERROR: sequence "article_sender_type_id_seq" does not exist ERROR: table "article_sender_type" does not exist ERROR: parser: parse error at or near "NOT" ERROR: sequence "article_id_seq" does not exist ERROR: table "article" does not exist ERROR: parser: parse error at or near "NOT" ERROR: parser: parse error at or near "(" ERROR: sequence "standard_response_id_seq" does not exist ERROR: table "standard_response" does not exist ERROR: parser: parse error at or near "NOT" ERROR: sequence "queue_standard_response_id_seq" does not exist ERROR: table "queue_standard_response" does not exist ERROR: parser: parse error at or near "NOT" ERROR: sequence "auto_response_type_id_seq" does not exist ERROR: table "auto_response_type" does not exist ERROR: parser: parse error at or near "NOT" ERROR: sequence "auto_response_id_seq" does not exist ERROR: table "auto_response" does not exist ERROR: parser: parse error at or near "NOT" ERROR: sequence "queue_auto_response_id_seq" does not exist ERROR: table "queue_auto_response" does not exist ERROR: parser: parse error at or near "NOT" ERROR: sequence "faq_id_seq" does not exist ERROR: table "faq" does not exist ERROR: parser: parse error at or near "NOT" ERROR: sequence "session_id_seq" does not exist ERROR: table "session" does not exist NOTICE: CREATE TABLE will create implicit sequence 'session_id_seq' for SERIAL column 'session.id' NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index 'session_pkey' for table 'session' NOTICE: CREATE TABLE / UNIQUE will create implicit index 'session_session_id_key' for table 'session' CREATE ERROR: parser: parse error at or near "(" ------------------------------------------------------------------ The tables that get created are: session | table | root session_id_seq | sequence | root user_preferences | table | root Am I missing a step or doing something incorrectly? Thanks, -Eddie On Thu, 30 May 2002, Martin Edenhofer wrote:
Hi,
today I tested OpenTRS with PostgreSQL. And after a few changes (mostly in OpenTRS-schema.postgresql.sql and initial_insert.sql) it works fine.
If you want to use it, install 0.5 Beta5 and update
Kernel/Modules/AgentQueueView.pm Kernel/Modules/AgentZoom.pm install/database/OpenTRS-schema.postgresql.sql install/database/initial_insert.sql
from the current CVS tree.
Bye,
Martin
-- Martin Edenhofer - http://martin.edenhofer.de/ -- "Security is a process, not a product." - Bruce Schneider
with kind regards
Martin
-- Martin Edenhofer -
- http://martin.edenhofer.de/ -- Old programmers never die. They just branch to a new address. _______________________________________________ OpenTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

Hi Eddie, On Fri, May 31, 2002 at 05:07:29PM -0700, Eddie Urenda wrote:
I attempted to follow the instuctions in README.database with the replacement files OpenTRS-schema.postgresql.sql and initial_insert.sql along with the *.pm files from the CVS tree.
Then I proceeded to create a user 'otrs' with home directory /opt/OpenTRS then created otrs database with 'createdb otrs' (as root).
I am using PostgreSQL 7.2.1 on i686-pc-linux-gnu, compiled by GCC 2.95.4
When I attempt to insert the database (ran 'createuser root' and 'otrs' as well) using 'psql otrs < OpenTRS-schema.postgresql.sql', I get the following errors (sorry for this being so long), and most of the tables do not get created (it does not seem to like to check for tables that don't exist and does not like the NOT NULL statements either) :
-------------------------------------------------------------- ERROR: sequence "valid_id_seq" does not exist ERROR: table "valid" does not exist ERROR: parser: parse error at or near "NOT" [...]
I'm using PostgreSQL 7.2 on i686-pc-linux-gnu, compiled by GCC 2.95.3. The error message locks like that the OpenTRS-schema.postgresql.sql isn't up to date. Do you have http://otrs.org/cgi-bin/cvsweb.cgi/~checkout~/otrs/install/database/OpenTRS-... from Thu May 30 13:20:59 2002 UTC? This works fine for me.
The tables that get created are:
session | table | root session_id_seq | sequence | root user_preferences | table | root
Am I missing a step or doing something incorrectly?
The way is right. Please check the OpenTRS-schema.postgresql.sql file. There should be 30 tables. %-)
Thanks,
-Eddie
Martin -- Martin Edenhofer - <martin at edenhofer.de> - http://martin.edenhofer.de/ -- socrate: 9:03am up 147 days, 19:50, 2 users, load average: 0.08, 0.05, 0.01

Do you have http://otrs.org/cgi-bin/cvsweb.cgi/~checkout~/otrs/install/database/OpenTRS-... from Thu May 30 13:20:59 2002 UTC? This works fine for me.
No, I didn't have this version from CVS. I updated this file, now all tables get created properly, and I can insert the sample data without errors. Thanks! -Eddie

Hi Eddie, On Mon, Jun 03, 2002 at 04:57:21PM -0700, Eddie Urenda wrote:
from Thu May 30 13:20:59 2002 UTC? This works fine for me.
No, I didn't have this version from CVS. I updated this file, now all tables get created properly, and I can insert the sample data without errors. Thanks!
Fine. No problem. ;-) Just in case: ============= If you have Perl-DBI connect problems. Update Kernel/System/DB.pm too. ( http://otrs.org/cgi-bin/cvsweb.cgi/~checkout~/otrs/Kernel/System/DB.pm?rev=1... ) And check ( http://otrs.org/cgi-bin/cvsweb.cgi/~checkout~/otrs/Kernel/Config.pm?rev=1.35... ) for PostgreSQL demo DSN (e. g. "DBI:Pg:dbname=$Self->{Database};").
-Eddie
Martin -- Martin Edenhofer - <martin at edenhofer.de> - http://martin.edenhofer.de/ -- Perfection is our goal, excellence will be tolerated. -- J. Yahl
participants (3)
-
Eddie Urenda
-
Martin Edenhofer
-
Martin Edenhofer