powered by simpleCommunicator - 2.0.60     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / PostgreSQL [игнор отключен] [закрыт для гостей] / uuid не ставится: как?
4 сообщений из 4, страница 1 из 1
uuid не ставится: как?
    #34756264
Winnipuh
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
вроде все по напсианому делаю, выполяю скрипт, но получаю:

postgres@s-postresql:/usr/share/postgresql/8.2/contrib$ psql -U postgres -d template1 -f /usr/share/postgresql/8.2/contrib/uuid.sql
SET
psql:/usr/share/postgresql/8.2/contrib/uuid.sql:7: NOTICE: type "uuid" is not yet defined
DETAIL: Creating a shell type definition.
psql:/usr/share/postgresql/8.2/contrib/uuid.sql:7: ERROR: incompatible library "/usr/lib/postgresql/8.2/lib/uuid.so": missing magic block
HINT: Extension libraries are required to use the PG_MODULE_MAGIC macro.
psql:/usr/share/postgresql/8.2/contrib/uuid.sql:13: ERROR: type uuid does not exist
psql:/usr/share/postgresql/8.2/contrib/uuid.sql:19: ERROR: function uuid_in(cstring) does not exist
psql:/usr/share/postgresql/8.2/contrib/uuid.sql:22: ERROR: type "uuid" does not exist
psql:/usr/share/postgresql/8.2/contrib/uuid.sql:33: ERROR: type uuid does not exist
psql:/usr/share/postgresql/8.2/contrib/uuid.sql:40: ERROR: type uuid does not exist
psql:/usr/share/postgresql/8.2/contrib/uuid.sql:47: ERROR: type uuid does not exist
psql:/usr/share/postgresql/8.2/contrib/uuid.sql:54: ERROR: type uuid does not exist
psql:/usr/share/postgresql/8.2/contrib/uuid.sql:61: ERROR: type uuid does not exist
psql:/usr/share/postgresql/8.2/contrib/uuid.sql:68: ERROR: type uuid does not exist
psql:/usr/share/postgresql/8.2/contrib/uuid.sql:84: ERROR: type "uuid" does not exist
psql:/usr/share/postgresql/8.2/contrib/uuid.sql:93: ERROR: type "uuid" does not exist
psql:/usr/share/postgresql/8.2/contrib/uuid.sql:104: ERROR: type "uuid" does not exist
psql:/usr/share/postgresql/8.2/contrib/uuid.sql:113: ERROR: type "uuid" does not exist
psql:/usr/share/postgresql/8.2/contrib/uuid.sql:122: ERROR: type "uuid" does not exist
psql:/usr/share/postgresql/8.2/contrib/uuid.sql:132: ERROR: type "uuid" does not exist
psql:/usr/share/postgresql/8.2/contrib/uuid.sql:140: NOTICE: type "uuid" is not yet defined
DETAIL: Creating a shell type definition.
psql:/usr/share/postgresql/8.2/contrib/uuid.sql:140: ERROR: incompatible library "/usr/lib/postgresql/8.2/lib/uuid.so": missing magic block
HINT: Extension libraries are required to use the PG_MODULE_MAGIC macro.
psql:/usr/share/postgresql/8.2/contrib/uuid.sql:155: NOTICE: type "uuid" is not yet defined
DETAIL: Creating a shell type definition.
psql:/usr/share/postgresql/8.2/contrib/uuid.sql:155: ERROR: incompatible library "/usr/lib/postgresql/8.2/lib/uuid.so": missing magic block
HINT: Extension libraries are required to use the PG_MODULE_MAGIC macro.
psql:/usr/share/postgresql/8.2/contrib/uuid.sql:162: NOTICE: type "uuid" is not yet defined
DETAIL: Creating a shell type definition.
psql:/usr/share/postgresql/8.2/contrib/uuid.sql:162: ERROR: incompatible library "/usr/lib/postgresql/8.2/lib/uuid.so": missing magic block
HINT: Extension libraries are required to use the PG_MODULE_MAGIC macro.
psql:/usr/share/postgresql/8.2/contrib/uuid.sql:170: ERROR: type uuid does not exist
psql:/usr/share/postgresql/8.2/contrib/uuid.sql:186: ERROR: type "uuid" does not exist
psql:/usr/share/postgresql/8.2/contrib/uuid.sql:207: ERROR: type uuid does not exist
psql:/usr/share/postgresql/8.2/contrib/uuid.sql:214: ERROR: type uuid does not exist
postgres@s-postresql:/usr/share/postgresql/8.2/contrib$
...
Рейтинг: 0 / 0
uuid не ставится: как?
    #34757201
Winnipuh
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
порешил.
...
Рейтинг: 0 / 0
uuid не ставится: как?
    #34757454
Фотография pamir
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Winnipuhпорешил.Рассказал бы. Вдруг у кого еще такое же будет
...
Рейтинг: 0 / 0
uuid не ставится: как?
    #34757566
Winnipuh
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
pamir Winnipuhпорешил.Рассказал бы. Вдруг у кого еще такое же будет

рассказ участника событий:
1. месяц назад ставил 8.2.4 и в него добавлял uuid - все прошло без вмешательства, как напсиано, скомпилировал, выполнил скрипт - сработало.

2. вчера начал ставить - получил ошибку (см. выше), перекомпилировал - та же фигня.
Порылся, нашел, руками в uuid.c файл дописал

#ifdef PG_MODILE_MAGIC
PG_MODILE_MAGIC;
#endif

пересобрал, выполнил скрипт - прошло. Т.е постгрес стал требовать в расширенных so такого контекста, а автор uuid видимо "забил" на него давно.

В 8.3 uuid уже будет встроенным типом, так что....
...
Рейтинг: 0 / 0
4 сообщений из 4, страница 1 из 1
Форумы / PostgreSQL [игнор отключен] [закрыт для гостей] / uuid не ставится: как?
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]