Возникли проблемы при установки 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
Комментарии
продолжение:
большой лог, а в конце:
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
$ createlang plpgsql <dbname>
--
Axel,
www.axel.drupal.ru
Ссори, не понял. При чем тут этот сайт? Документация?
Рекламная подпись - ссылка на домашнюю страницу А ответ был выше, в нём что-то непонятно?
--
Axel,
www.axel.drupal.ru
ой, прости, тормознул я - не заметил=)
спасибо за ответ.
Возникли проблемы при установки 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
psql -U drupal_user -d drupal_base -ec "alter table sessions alter uid set default 0;"
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" не существует
не пожскажите, в чем может быть проблема?
при попытке изменить настройки, данные отсылаются но страница не обновляется. просто остается пустой. если нажать "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.
подскажите что не так?