Re: Having problem with postgresql configuration (template1 doesn't

Поиск
Список
Период
Сортировка
От Vinicius
Тема Re: Having problem with postgresql configuration (template1 doesn't
Дата
Msg-id cvclaq$hto$1@sea.gmane.org
обсуждение исходный текст
Ответ на Re: Having problem with postgresql configuration (template1 doesn't  (Vinicius <cviniciusm@terra.com.br>)
Ответы Having problem with functions/operators/aggregates  (<knaicker@mweb.co.za>)
Список pgsql-admin
Vinicius escreveu:
> Tom Lane escreveu:
>
>> Vinicius <cviniciusm@terra.com.br> writes:
>>
>>> I tryed to create another data dir because I don't have the template1
>>> database.
>>
>>
>>
>> I think you got bit by one of the early-FC3 selinux policy bugs; see
>> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=142607
>> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=143208
>>
>> You probably want to rm -rf /var/lib/pgsql/data/ and try again
>> after making sure (a) you have the latest postgres and selinux
>> packages and (b) you've done restorecon on /var/lib/pgsql and
>> /var/log/pgsql.
>>
>>             regards, tom lane
>>
>> ---------------------------(end of broadcast)---------------------------
>> TIP 7: don't forget to increase your free space map settings
>>
>
> I did do "rm -fr /var/lib/pgsql/data/"
> (a) I have the lastest *stable postgres package* from Fedora Core 3;
> (b) I did do restorecon on "/var/lib/pgsql" and on "/var/log/pgsql".
>
> now it pass the "...creating template1 database in
> /var/lib/pgsql/data/base/1... ok" but stop at
> "...
> initializing pg_shadow... ok
> enabling unlimited row size for system tables... ok
> initializing pg_depend... ok
> creating system views... ok
> loading pg_description... ok
> creating conversions... ok
> setting privileges on built-in objects... ok
> *creating information schema...*
> initdb: failed"
>
> /var/log/messages shows:
> "...
> Feb 21 09:10:43 ronin kernel: audit(1108987843.094:0): avc:  denied  {
> read } for  pid=6766 exe=/usr/bin/postgres path=/tmp/sh-thd-1108997049
> (deleted) dev=dm-0 ino=1046660 scontext=user_u:system_r:postgresql_t
> tcontext=user_u:object_r:tmp_t tclass=file
> Feb 21 09:10:43 ronin kernel: audit(1108987843.423:0): avc:  denied  {
> read } for  pid=6767 exe=/usr/bin/postgres path=/tmp/sh-thd-1108980215
> (deleted) dev=dm-0 ino=1046660 scontext=user_u:system_r:postgresql_t
> tcontext=user_u:object_r:tmp_t tclass=file
> Feb 21 09:10:43 ronin kernel: audit(1108987843.480:0): avc:  denied  {
> read } for  pid=6768 exe=/usr/bin/postgres path=/tmp/sh-thd-1109000142
> (deleted) dev=dm-0 ino=1046660 scontext=user_u:system_r:postgresql_t
> tcontext=user_u:object_r:tmp_t tclass=file
> Feb 21 09:10:43 ronin kernel: audit(1108987843.542:0): avc:  denied  {
> read } for  pid=6769 exe=/usr/bin/postgres path=/tmp/sh-thd-1108983044
> (deleted) dev=dm-0 ino=1046660 scontext=user_u:system_r:postgresql_t
> tcontext=user_u:object_r:tmp_t tclass=file"
>
> I think "/usr/bin/postgres" was tried to write to a file in "/tmp" and
> was denied.
>
> And I still don't get the template1 database.
>
> Thanks.

I think it tried to read instead to write.

В списке pgsql-admin по дате отправления:

Предыдущее
От: Vinicius
Дата:
Сообщение: Re: Having problem with postgresql configuration (template1 doesn't
Следующее
От: Vinicius
Дата:
Сообщение: Re: Having problem with postgresql configuration (template1 doesn't