Menu

#436 postgresql schema bugs and fixes

Database
closed
Postgresql (18)
5
2012-10-11
2005-04-03
No

phpwiki 1.3.11

There's no need to use httpd_user in postgresql schema.
Create the user and database as any other postgresql db:
su - postgres
createuser wiki

Then with current shell user:
createdb -U wiki wiki
psql -U wiki -f schemas/psql-initialize.sql

To fix:
cat psql-initialize.sql |grep -v "httpd_user" > psql.sql

Next, some errors (these are in original .sql file too) :

psql:psql.sql:152: ERROR: syntax error at or near "("
at character 47
psql:psql.sql:153: ERROR: syntax error at or near ":"
at character 21

FIXES: Add this line to definitions
\set rating_id :prefix 'rating_id'

Remove NUMBER and UNSIGNED which come from mysql
adaptation.

I attached the fixed schema.

Discussion

  • Marius Andreiana

    fixed pgsql schema

     

Log in to post a comment.