Drupal+PostgreSQL

Главные вкладки

Аватар пользователя soko1 soko1 12 августа 2005 в 20:36

Возникли проблемы при установки drupal на СУБД POstgreSQL.
А именно:

pgsql@$ ./createdb drupal
CREATE DATABASE
pgsql@$ ./psql drupal</www/test/database/database.pgsq

большой лог, а в конце:

ERROR: language "plpgsql" does not exist
HINT: You need to use "createlang" to load the language into the database.
ERROR: language "plpgsql" does not exist
HINT: You need to use "createlang" to load the language into the database.
ERROR: function greatest(integer, integer) does not exist
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: function greatest(integer, integer) does not exist
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: language "plpgsql" does not exist
HINT: You need to use "createlang" to load the language into the database.
ERROR: language "plpgsql" does not exist
HINT: You need to use "createlang" to load the language into the database.
ERROR: language "plpgsql" does not exist
HINT: You need to use "createlang" to load the language into the database.
ERROR: language "plpgsql" does not exist
HINT: You need to use "createlang" to load the language into the database.
CREATE FUNCTION

После этого ничего не работает. Хотя когда делаю в psql:

drupal=# \d

Выводятся таблицы, sites/default/settings.php настроил. Видимо траблы при импорте БД database.pgsq.

P.S.: Пробовал на PostgreSQL-7.4.X, и 8.0.X

Комментарии

Аватар пользователя soko1 soko1 12 августа 2005 в 20:40

продолжение:
большой лог, а в конце:

ERROR: language "plpgsql" does not exist
HINT: You need to use "createlang" to load the language into the database.
ERROR: language "plpgsql" does not exist
HINT: You need to use "createlang" to load the language into the database.
ERROR: function greatest(integer, integer) does not exist
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: function greatest(integer, integer) does not exist
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: language "plpgsql" does not exist
HINT: You need to use "createlang" to load the language into the database.
ERROR: language "plpgsql" does not exist
HINT: You need to use "createlang" to load the language into the database.
ERROR: language "plpgsql" does not exist
HINT: You need to use "createlang" to load the language into the database.
ERROR: language "plpgsql" does not exist
HINT: You need to use "createlang" to load the language into the database.
CREATE FUNCTION

После этого ничего не работает. Хотя когда делаю в psql:

drupal=# \d

Выводятся таблицы, sites/default/settings.php настроил. Видимо траблы при импорте БД database.pgsq.

P.S.: Пробовал на PostgreSQL-7.4.X, и 8.0.X

Аватар пользователя Ivan Ivan (не проверено) 19 августа 2005 в 6:18

Возникли проблемы при установки drupal на СУБД POstgreSQL.
А именно:

Warning: pg_query(): Query failed: ERROR: null value in column "uid" violates not-null constraint in /usr/share/drupal/includes/database.pgsql.inc on line 104

Fatal error: ERROR: null value in column "uid" violates not-null constraint query: INSERT INTO sessions (sid, hostname, timestamp) values('8ee1a1204700dabae49c881c02b97dae', '127.0.0.1', 1124416596) in /usr/share/drupal/includes/database.pgsql.inc on line 121

Аватар пользователя Vital Vital (не проверено) 9 сентября 2005 в 1:12

psql:/var/www/html/database/database.pgsql:818: ERROR: parser: parse error at or near "SEQUENCE" at character 7 (строка в скрипте ALTER SEQUENCE menu_mid_seq RESTART 2)

psql:/var/www/html/database/database.pgsql:856: ERROR: Тип "anyelement" не существует

не пожскажите, в чем может быть проблема?

Аватар пользователя jam jam (не проверено) 28 сентября 2005 в 12:37

при попытке изменить настройки, данные отсылаются но страница не обновляется. просто остается пустой. если нажать "back", а потом вернутся на страницу в которой данные модифицировались, то оказывается, что изменения внесены. в логах вот такое

Cannot modify header information - headers already sent by (output started at /var/www/default/www/modules/site_map.module:172) in /var/www/default/www/includes/common.inc on line 192.

/?q=user/2/track
Message query: SELECT n.*, u.uid, u.name, u.picture, u.data FROM node n INNER JOIN users u ON u.uid = n.uid WHERE n.nid = '' в /var/www/default/www/includes/database.pgsql.inc на строке 62.

подскажите что не так?