pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: H S <aras_h1988@yahoo.com>
To: admin <pgsql-admin@postgresql.org>
Subject: sepgsql installation troubles in Postgresql 9.1 alpha4
Date: Mon, 28 Mar 2011 03:10:12 -0700 (PDT)
Message-ID: <343378.73578.qm@web65903.mail.ac4.yahoo.com> (raw)

Dear Sirs,


I
 have just read your manual about implementing module sepgsql on 
Postgresql. But I do not have any idea that where and how I sould insert
 the below commands, that you've mentioned in manual. 


>In terminal? 

> When I type initdb, normally it requires at least an option to be followed; but here it has been typed "initdb". 

> And also about $PGDATA: Should I type my path instead $PGDATA?
> And by the way the for command until end of done. Should I insert/type it in my linux(fedora 14) terminal? 


Regards, 


Sara


===================================================================================================================================================

(MANUAL)
 The following instructions that assume your installation is under the 
/usr/local/pgsql directory. Adjust the paths shown below as appropriate 
for your installaton.


$ initdb

$ vi $PGDATA/postgresql.conf
$ for DBNAME in template0 template1 postgres; do

  postgres --single -F -O -c exit_on_error=true $DBNAME \
      < /usr/local/pgsql/share/contrib/sepgsql.sql > /dev/null

  done
------------------------------------------

---my commands in terminal:


[postgres@localhost
 bin]$ for DBNAME in test; do  ./postgres --single -D 
/usr/local/pgsql/data -F -O -c exit_on_error=true $DBNAME < 
/usr/local/pgsql/share/

contrib/sepgsql.sql > /dev/null; done
-------------------------------------------

----result: 


FATAL:  SELinux: failed to initialize labeling handle: No such file or directory

STATEMENT:  SELECT sepgsql_restorecon(NULL);
-------------------------------------------

*My System has the selinux-policy version is selinux-policy-3.9.7-37.fc14.
I would like to know whether the versions 3.9.13 in fedora15 and 3.9.7-37 for fedora 14 is equivalent or not. 






      

view thread (2+ messages)  latest in thread

Message-ID: <343378.73578.qm@web65903.mail.ac4.yahoo.com>
Permalink:  ../343378.73578.qm@web65903.mail.ac4.yahoo.com/
Also on:    postgresql.org/message-id/343378.73578.qm@web65903.mail.ac4.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: aras_h1988@yahoo.com
  Subject: Re: sepgsql installation troubles in Postgresql 9.1 alpha4
  In-Reply-To: <343378.73578.qm@web65903.mail.ac4.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox