From jfradkin@wazagua.com Fri Jan 21 00:56:21 2005 X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id D3C363A495E for ; Fri, 21 Jan 2005 00:56:21 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 89176-01 for ; Fri, 21 Jan 2005 00:56:15 +0000 (GMT) Received: from out004.verizon.net (out004pub.verizon.net [206.46.170.142]) by svr1.postgresql.org (Postfix) with ESMTP id ED97D3A4938 for ; Fri, 21 Jan 2005 00:56:16 +0000 (GMT) Received: from jfradkin ([66.15.127.235]) by out004.verizon.net (InterMail vM.5.01.06.06 201-253-122-130-106-20030910) with ESMTP id <20050121005616.GZHU8290.out004.verizon.net@jfradkin> for ; Thu, 20 Jan 2005 18:56:16 -0600 From: "Joel Fradkin" To: Subject: still having pg_user error Date: Thu, 20 Jan 2005 19:59:16 -0500 Message-ID: <000001c4ff54$6f427aa0$797ba8c0@jfradkin> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0001_01C4FF2A.866C72A0" X-Authentication-Info: Submitted using SMTP AUTH at out004.verizon.net from [66.15.127.235] at Thu, 20 Jan 2005 18:56:16 -0600 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=3.081 tagged_above=0 required=5 tests=AWL, HTML_MESSAGE, MSGID_DOLLARS X-Spam-Level: *** X-Archive-Number: 200501/182 X-Sequence-Number: 19970 This is a multi-part message in MIME format. ------=_NextPart_000_0001_01C4FF2A.866C72A0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Well I re-installed Fedora 3 and updated my postgres and started the = service (no command line stuff). When I connected using pgadmin I still got the sp_user error. I am brand new to both linux and postgres and am a bit frustrated as I = have spent the entire day getting no where. Is there a step by step instruction for using postgres on fedora 3 = anywhere? =20 What I did seemed simple enough using the graphical interface I added = the postgres components and put in CD3 then I used the up2date thing, then I started the service. =20 Obviously I am missing a important step (I realize I have to edit the ph_hba.conf file, but it was not there until after I started the = service. I stopped the service and added a host line and edited postgres.conf to = allow tcpip sockets. =20 I hate to not get further tonight as it takes all night to move the data = and I wanted to be moving views tomorrow, but I guess I will just have to = try again tomorrow. =20 Joel Fradkin =20 Wazagua, Inc. 2520 Trailmate Dr Sarasota, Florida 34243 Tel. 941-753-7111 ext 305 =20 jfradkin@wazagua.com www.wazagua.com Powered by Wazagua Providing you with the latest Web-based technology & advanced tools. C 2004. WAZAGUA, Inc. All rights reserved. WAZAGUA, Inc This email message is for the use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized = review, use, disclosure or distribution is prohibited. If you are not the = intended recipient, please contact the sender by reply email and delete and = destroy all copies of the original message, including attachments. =20 =20 =20 ------=_NextPart_000_0001_01C4FF2A.866C72A0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Well I re-installed Fedora 3 and updated my postgres = and started the service (no command line stuff).

When I connected using pgadmin I still got the = sp_user error.

I am brand new to both linux and postgres and am a = bit frustrated as I have spent the entire day getting no = where.

Is there a step by step instruction for using = postgres on fedora 3 anywhere?

 

What I did seemed simple enough using the graphical interface I added the postgres components and put in CD3 then I used the up2date thing, then I started the service.

 

Obviously I am missing a important step (I realize I = have to edit the ph_hba.conf file, but it was not there until after I started = the service. I stopped the service and added a host line and edited postgres.conf to = allow tcpip sockets.

 

I hate to not get further tonight as it takes all = night to move the data and I wanted to be moving views tomorrow, but I guess I = will just have to try again tomorrow.

 

Joel Fradkin

 

Wazagua, Inc.
2520 Trailmate Dr
Sarasota, Florida = 34243
Tel.  941-753-7111 ext 305

 

jfradkin@wazagua.com
www.wazagua.com
Powered by Wazagua
Providing you with the latest Web-based technology & advanced = tools.
© 2004. WAZAGUA, Inc. All rights reserved. WAZAGUA, Inc
 This email message is for the use of the intended recipient(s) and = may contain confidential and privileged information.  Any unauthorized = review, use, disclosure or distribution is prohibited.  If you are not the intended recipient, please contact the sender by reply email and delete = and destroy all copies of the original message, including = attachments.

 


 

 

------=_NextPart_000_0001_01C4FF2A.866C72A0-- From tgl@sss.pgh.pa.us Fri Jan 21 05:47:48 2005 X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E0FF93A4ACA for ; Fri, 21 Jan 2005 05:47:48 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 54828-02 for ; Fri, 21 Jan 2005 05:47:45 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id DA9563A4A4E for ; Fri, 21 Jan 2005 05:47:45 +0000 (GMT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j0L5lhw2012320; Fri, 21 Jan 2005 00:47:44 -0500 (EST) To: "Joel Fradkin" Cc: pgsql-sql@postgresql.org Subject: Re: still having pg_user error In-reply-to: <000001c4ff54$6f427aa0$797ba8c0@jfradkin> References: <000001c4ff54$6f427aa0$797ba8c0@jfradkin> Comments: In-reply-to "Joel Fradkin" message dated "Thu, 20 Jan 2005 19:59:16 -0500" Date: Fri, 21 Jan 2005 00:47:43 -0500 Message-ID: <12319.1106286463@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.004 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200501/183 X-Sequence-Number: 19971 "Joel Fradkin" writes: > Well I re-installed Fedora 3 and updated my postgres and started the = > service > (no command line stuff). > When I connected using pgadmin I still got the sp_user error. Fedora 3? You should've mentioned that before. I'll bet you've got SELinux enabled in enforcement mode. SELinux interferes with initdb and I believe a missing pg_user view is one of the symptoms. This is fixed in the very latest postgresql and selinux-policy-targeted RPMs (u need both), but the path of least resistance is often to dial SELinux down to permissive mode (sudo /usr/sbin/setenforce 0) for long enough to do the initdb. If you're running SELinux in strict rather than targeted policy, good luck ... I honestly haven't tried that one at all ... regards, tom lane From jfradkin@wazagua.com Fri Jan 21 13:53:39 2005 X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id CF5893A4A36 for ; Fri, 21 Jan 2005 13:53:39 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 12801-04 for ; Fri, 21 Jan 2005 13:53:29 +0000 (GMT) Received: from out003.verizon.net (out003pub.verizon.net [206.46.170.103]) by svr1.postgresql.org (Postfix) with ESMTP id B62543A2C8F for ; Fri, 21 Jan 2005 13:53:31 +0000 (GMT) Received: from jfradkin ([66.15.127.235]) by out003.verizon.net (InterMail vM.5.01.06.06 201-253-122-130-106-20030910) with ESMTP id <20050121135331.QRYV1106.out003.verizon.net@jfradkin>; Fri, 21 Jan 2005 07:53:31 -0600 From: "Joel Fradkin" To: "'Tom Lane'" Cc: Subject: Re: still having pg_user error Date: Fri, 21 Jan 2005 08:56:32 -0500 Message-ID: <000001c4ffc1$044e0710$797ba8c0@jfradkin> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable In-reply-to: <12319.1106286463@sss.pgh.pa.us> X-Authentication-Info: Submitted using SMTP AUTH at out003.verizon.net from [66.15.127.235] at Fri, 21 Jan 2005 07:53:31 -0600 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=3.08 tagged_above=0 required=5 tests=AWL, MSGID_DOLLARS X-Spam-Level: *** X-Archive-Number: 200501/187 X-Sequence-Number: 19975 Tom thank you for the reply. I believe I turned all that off during the install (no firewall). But I can try again. Is there an action I can take now since it is installed and in theory = the RPM's are up2date. Sorry I have a few books on postgres Oreily and Sams, = but it seems a bit deep on install. At the very least I guess I can do a backup of the database, wipe = everything /var/lib/pgsql/data and try the initd thing (verify SELinux is off; not = sure how I do that, but I will look at the command you mentioned).=20 I am very happy with my progress thus far (have most of my data coming over), but I am frustrated on my lack of knowledge. I have administered Linux before but its been several years and I don't remember much. I am very impressed with the progress with admin tools and such, I just = wish I had a clear idea of the path to get a development postgres box up on fedora and am more then a little worried about administering the = production (we ordered a 4 processor Dell with Red HAT, I believe I will also need = to install it).=20 Again thank you for that piece of advice, I can always re-install Linux = and verify the SELinux option is off, maybe I messed up again. Joel Fradkin =20 Wazagua, Inc. 2520 Trailmate Dr Sarasota, Florida 34243 Tel. 941-753-7111 ext 305 =20 jfradkin@wazagua.com www.wazagua.com Powered by Wazagua Providing you with the latest Web-based technology & advanced tools. C 2004. WAZAGUA, Inc. All rights reserved. WAZAGUA, Inc This email message is for the use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized = review, use, disclosure or distribution is prohibited. If you are not the = intended recipient, please contact the sender by reply email and delete and = destroy all copies of the original message, including attachments. =20 =20 -----Original Message----- From: Tom Lane [mailto:tgl@sss.pgh.pa.us]=20 Sent: Friday, January 21, 2005 12:48 AM To: Joel Fradkin Cc: pgsql-sql@postgresql.org Subject: Re: [SQL] still having pg_user error=20 "Joel Fradkin" writes: > Well I re-installed Fedora 3 and updated my postgres and started the = =3D > service > (no command line stuff). > When I connected using pgadmin I still got the sp_user error. Fedora 3? You should've mentioned that before. I'll bet you've got SELinux enabled in enforcement mode. SELinux interferes with initdb and I believe a missing pg_user view is one of the symptoms. This is fixed in the very latest postgresql and selinux-policy-targeted RPMs (u need both), but the path of least resistance is often to dial SELinux down to permissive mode (sudo /usr/sbin/setenforce 0) for long enough to do the initdb. If you're running SELinux in strict rather than targeted policy, good luck ... I honestly haven't tried that one at all ... regards, tom lane From tgl@sss.pgh.pa.us Fri Jan 21 14:17:05 2005 X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 5CA193A483E for ; Fri, 21 Jan 2005 14:17:05 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 16469-04 for ; Fri, 21 Jan 2005 14:16:54 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 125013A4A85 for ; Fri, 21 Jan 2005 14:16:57 +0000 (GMT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j0LEGuZg015485; Fri, 21 Jan 2005 09:16:56 -0500 (EST) To: "Joel Fradkin" Cc: pgsql-sql@postgresql.org Subject: Re: still having pg_user error In-reply-to: <000001c4ffc1$044e0710$797ba8c0@jfradkin> References: <000001c4ffc1$044e0710$797ba8c0@jfradkin> Comments: In-reply-to "Joel Fradkin" message dated "Fri, 21 Jan 2005 08:56:32 -0500" Date: Fri, 21 Jan 2005 09:16:56 -0500 Message-ID: <15484.1106317016@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.004 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200501/188 X-Sequence-Number: 19976 "Joel Fradkin" writes: > Is there an action I can take now since it is installed and in theory the > RPM's are up2date. Sorry I have a few books on postgres Oreily and Sams, but > it seems a bit deep on install. Sure, you can use the RPMs you have. You want something like (as root) service postgresql stop rm -rf /var/lib/pgsql/data setenforce 0 service postgresql start The start script will observe that there's no database directory and proceed to run initdb for you. regards, tom lane From jfradkin@wazagua.com Fri Jan 21 15:48:45 2005 X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 24A663A4BDA for ; Fri, 21 Jan 2005 15:48:45 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 33591-08 for ; Fri, 21 Jan 2005 15:48:33 +0000 (GMT) Received: from out011.verizon.net (out011pub.verizon.net [206.46.170.135]) by svr1.postgresql.org (Postfix) with ESMTP id CB9AE3A1ABF for ; Fri, 21 Jan 2005 15:48:09 +0000 (GMT) Received: from jfradkin ([66.15.127.235]) by out011.verizon.net (InterMail vM.5.01.06.06 201-253-122-130-106-20030910) with ESMTP id <20050121154809.ZCYP4717.out011.verizon.net@jfradkin>; Fri, 21 Jan 2005 09:48:09 -0600 From: "Joel Fradkin" To: "'Tom Lane'" Cc: Subject: Re: still having pg_user error Date: Fri, 21 Jan 2005 10:51:10 -0500 Message-ID: <000001c4ffd1$08528510$797ba8c0@jfradkin> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In-Reply-To: <15484.1106317016@sss.pgh.pa.us> X-Authentication-Info: Submitted using SMTP AUTH at out011.verizon.net from [66.15.127.235] at Fri, 21 Jan 2005 09:48:09 -0600 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=3.08 tagged_above=0 required=5 tests=AWL, MSGID_DOLLARS X-Spam-Level: *** X-Archive-Number: 200501/189 X-Sequence-Number: 19977 Finally I think that did the trick. I did see the GUI editor for security and set SELinux to off and re-booted. I ran the rpm text you gave me I can use pgadmin with no errors, now for another 12 hours of transferring data :( so I can work on the views and stored procedures. This list is a great resource and I appreciate all the ideas comments and help it has made the difference for me. Joel Fradkin Wazagua, Inc. 2520 Trailmate Dr Sarasota, Florida 34243 Tel. 941-753-7111 ext 305 jfradkin@wazagua.com www.wazagua.com Powered by Wazagua Providing you with the latest Web-based technology & advanced tools. C 2004. WAZAGUA, Inc. All rights reserved. WAZAGUA, Inc This email message is for the use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and delete and destroy all copies of the original message, including attachments. -----Original Message----- From: Tom Lane [mailto:tgl@sss.pgh.pa.us] Sent: Friday, January 21, 2005 9:17 AM To: Joel Fradkin Cc: pgsql-sql@postgresql.org Subject: Re: [SQL] still having pg_user error "Joel Fradkin" writes: > Is there an action I can take now since it is installed and in theory the > RPM's are up2date. Sorry I have a few books on postgres Oreily and Sams, but > it seems a bit deep on install. Sure, you can use the RPMs you have. You want something like (as root) service postgresql stop rm -rf /var/lib/pgsql/data setenforce 0 service postgresql start The start script will observe that there's no database directory and proceed to run initdb for you. regards, tom lane