pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Connection errors in PostgreSQL 9.3.2
6+ messages / 3 participants
[nested] [flat]

* Connection errors in PostgreSQL 9.3.2
@ 2014-02-19 22:00  fburgess@radiantblue.com
  0 siblings, 1 reply; 6+ messages in thread

From: fburgess@radiantblue.com @ 2014-02-19 22:00 UTC (permalink / raw)
  To: pgsql-bugs

<html><body><span style="font-family:Verdana; color:#000000; font-size:10pt;"><div>PostgreSQL version: 9.3.2<br>Operating system:   RHEL 6.4<br>
Description:        </div><div><br></div><div>Hello PostgreSQL developers</div><div><br></div><div>We are getting the following error trying to connect to PostgreSQL even though I commented out the <b>timezone</b> and <b>log_timezone</b> settings in the postgresql.conf file.</div><div><br></div><div><b>Invalid value for parameter "Timezone": "Etc/GMT"</b></div><div><br></div><div>Does anyone know how to fix this?</div><div><br></div><div>thanks</div><div><br></div></span></body></html>




^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Connection errors in PostgreSQL 9.3.2
@ 2014-02-19 23:07  bricklen <bricklen@gmail.com>
  parent: fburgess@radiantblue.com
  0 siblings, 1 reply; 6+ messages in thread

From: bricklen @ 2014-02-19 23:07 UTC (permalink / raw)
  To: fburgess@radiantblue.com; +Cc: pgsql-bugs

On Wed, Feb 19, 2014 at 2:00 PM, <fburgess@radiantblue.com> wrote:

>
> We are getting the following error trying to connect to PostgreSQL even
> though I commented out the *timezone* and *log_timezone* settings in the
> postgresql.conf file.
>
> *Invalid value for parameter "Timezone": "Etc/GMT"*
>
> Does anyone know how to fix this?
>
>
Did you reload the postgresql.conf file after the change? If so, perhaps it
is set at the role level? What does the following show: "select
rolname,rolconfig from pg_roles;"

^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Connection errors in PostgreSQL 9.3.2
@ 2014-02-19 23:44  Tom Lane <tgl@sss.pgh.pa.us>
  parent: bricklen <bricklen@gmail.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2014-02-19 23:44 UTC (permalink / raw)
  To: bricklen <bricklen@gmail.com>; +Cc: fburgess@radiantblue.com; pgsql-bugs

bricklen <bricklen@gmail.com> writes:
> On Wed, Feb 19, 2014 at 2:00 PM, <fburgess@radiantblue.com> wrote:
>> We are getting the following error trying to connect to PostgreSQL even
>> though I commented out the *timezone* and *log_timezone* settings in the
>> postgresql.conf file.
>> *Invalid value for parameter "Timezone": "Etc/GMT"*
>> Does anyone know how to fix this?

> Did you reload the postgresql.conf file after the change? If so, perhaps it
> is set at the role level? What does the following show: "select
> rolname,rolconfig from pg_roles;"

If the complaint is showing up at connection time then the setting is not
coming from postgresql.conf.  Aside from role or database settings, it
could be that the client side is trying to set it (perhaps due to a PGTZ
environment variable).

The other angle that is worth considering is why isn't that value
considered valid?  It works for me.  Perhaps you have an incomplete
share/timezone directory, or if you built with --with-system-tzdata,
maybe the directory that points to is incomplete.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Connection errors in PostgreSQL 9.3.2
@ 2014-02-20 19:58  fburgess@radiantblue.com
  0 siblings, 1 reply; 6+ messages in thread

From: fburgess@radiantblue.com @ 2014-02-20 19:58 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; bricklen <bricklen@gmail.com>; +Cc: pgsql-bugs

<html><body><span style="font-family:Verdana; color:#000000; font-size:10pt;"><div>There are 260 entries in the /opt/PostgreSQL/9.3/share/postgresql/timezone directory.</div><div><br></div><div>There are 252 entries in our old obsolete PostgreSQL 9.1.6 /opt/PostgreSQL/9.1/share/postgresql/timezone directory.</div><div><br></div><div>I checked the permissions in the 
/opt/PostgreSQL/9.3/share/postgresql/timezone and they were set to 600. I
 cross-checked these against a 9.1 instance we have running on another box and the 
permissions were 644 could this be the issue?</div><div><br></div><div>thanks</div><div><br></div>
<blockquote id="replyBlockquote" webmail="1" style="border-left: 2px solid blue; margin-left: 8px; padding-left: 8px; font-size:10pt; color:black; font-family:verdana;">
<div id="wmQuoteWrapper">
-------- Original Message --------<br>
Subject: Re: [BUGS] Connection errors in PostgreSQL 9.3.2<br>
From: Tom Lane &lt;<a href="mailto:tgl@sss.pgh.pa.us">tgl@sss.pgh.pa.us</a>&gt;<br>
Date: Wed, February 19, 2014 4:44 pm<br>
To: bricklen &lt;<a href="mailto:bricklen@gmail.com">bricklen@gmail.com</a>&gt;<br>
Cc: <a href="mailto:fburgess@radiantblue.com">fburgess@radiantblue.com</a>, <a href="mailto:pgsql-bugs@postgresql.org">pgsql-bugs@postgresql.org</a><br>
<br>
bricklen &lt;<a href="mailto:bricklen@gmail.com">bricklen@gmail.com</a>&gt; writes:<br>
&gt; On Wed, Feb 19, 2014 at 2:00 PM, &lt;<a href="mailto:fburgess@radiantblue.com">fburgess@radiantblue.com</a>&gt; wrote:<br>
&gt;&gt; We are getting the following error trying to connect to PostgreSQL even<br>
&gt;&gt; though I commented out the *timezone* and *log_timezone* settings in the<br>
&gt;&gt; <a href="http://postgresql.conf">postgresql.conf</a; file.<br>
&gt;&gt; *Invalid value for parameter "Timezone": "Etc/GMT"*<br>
&gt;&gt; Does anyone know how to fix this?<br>
<br>
&gt; Did you reload the <a href="http://postgresql.conf">postgresql.conf</a; file after the change? If so, perhaps it<br>
&gt; is set at the role level? What does the following show: "select<br>
&gt; rolname,rolconfig from pg_roles;"<br>
<br>
If the complaint is showing up at connection time then the setting is not<br>
coming from <a href="http://postgresql.conf">postgresql.conf</a;.  Aside from role or database settings, it<br>
could be that the client side is trying to set it (perhaps due to a PGTZ<br>
environment variable).<br>
<br>
The other angle that is worth considering is why isn't that value<br>
considered valid?  It works for me.  Perhaps you have an incomplete<br>
share/timezone directory, or if you built with --with-system-tzdata,<br>
maybe the directory that points to is incomplete.<br>
<br>
			regards, tom lane<br>
<br>
<br>
-- <br>
Sent via pgsql-bugs mailing list (<a href="mailto:pgsql-bugs@postgresql.org">pgsql-bugs@postgresql.org</a>)<br>
To make changes to your subscription:<br>
<a href="http://www.postgresql.org/mailpref/pgsql-bugs">http://www.postgresql.org/mailpref/pgsql-bugs&...;

</div>
</blockquote></span></body></html>




^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Connection errors in PostgreSQL 9.3.2
@ 2014-02-20 21:54  Tom Lane <tgl@sss.pgh.pa.us>
  parent: fburgess@radiantblue.com
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2014-02-20 21:54 UTC (permalink / raw)
  To: fburgess@radiantblue.com; +Cc: bricklen <bricklen@gmail.com>; pgsql-bugs

[ please don't post html-only mail to these lists ]

<fburgess@radiantblue.com> writes:
> <html><body><span style="font-family:Verdana; color:#000000; font-size:10pt;"><div>There are 260 entries in the /opt/PostgreSQL/9.3/share/postgresql/timezone directory.</div><div><br></div><div>There are 252 entries in our old obsolete PostgreSQL 9.1.6 /opt/PostgreSQL/9.1/share/postgresql/timezone directory.</div><div><br></div><div>I checked the permissions in the 
> /opt/PostgreSQL/9.3/share/postgresql/timezone and they were set to 600. I
>  cross-checked these against a 9.1 instance we have running on another box and the 
> permissions were 644 could this be the issue?</div><div><br></div><div>thanks</div><div><br></div>

If the timezone files aren't owned by the same user ID that's running the
server process, then yeah, those permissions could be the problem.  There
should be no harm in making them world-readable in any case.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Connection errors in PostgreSQL 9.3.2
@ 2014-02-20 22:39  fburgess@radiantblue.com
  0 siblings, 0 replies; 6+ messages in thread

From: fburgess@radiantblue.com @ 2014-02-20 22:39 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: bricklen <bricklen@gmail.com>; pgsql-bugs

<html><body><span style="font-family:Verdana; color:#000000; font-size:10pt;"><div>Thanks Tom!! would not have found this solution without your suggestions.<br><br></div>
<blockquote id="replyBlockquote" webmail="1" style="border-left: 2px solid blue; margin-left: 8px; padding-left: 8px; font-size:10pt; color:black; font-family:verdana;">
<div id="wmQuoteWrapper">
-------- Original Message --------<br>
Subject: Re: [BUGS] Connection errors in PostgreSQL 9.3.2<br>
From: Tom Lane &lt;<a href="mailto:tgl@sss.pgh.pa.us">tgl@sss.pgh.pa.us</a>&gt;<br>
Date: Thu, February 20, 2014 2:54 pm<br>
To: <a href="mailto:fburgess@radiantblue.com">fburgess@radiantblue.com</a><br>
Cc: "bricklen" &lt;<a href="mailto:bricklen@gmail.com">bricklen@gmail.com</a>&gt;, <a href="mailto:pgsql-bugs@postgresql.org">pgsql-bugs@postgresql.org</a><br>
<br>
[ please don't post html-only mail to these lists ]<br>
<br>
&lt;<a href="mailto:fburgess@radiantblue.com">fburgess@radiantblue.com</a>&gt; writes:<br>
&gt; &lt;html&gt;&lt;body&gt;&lt;span style="font-family:Verdana; color:#000000; font-size:10pt;"&gt;&lt;div&gt;There are 260 entries in the /opt/PostgreSQL/9.3/share/postgresql/timezone directory.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;There are 252 entries in our old obsolete PostgreSQL 9.1.6 /opt/PostgreSQL/9.1/share/postgresql/timezone directory.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I checked the permissions in the <br>
&gt; /opt/PostgreSQL/9.3/share/postgresql/timezone and they were set to 600. I<br>
&gt;  cross-checked these against a 9.1 instance we have running on another box and the <br>
&gt; permissions were 644 could this be the issue?&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;thanks&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;<br>
<br>
If the timezone files aren't owned by the same user ID that's running the<br>
server process, then yeah, those permissions could be the problem.  There<br>
should be no harm in making them world-readable in any case.<br>
<br>
			regards, tom lane<br>
<br>
<br>
-- <br>
Sent via pgsql-bugs mailing list (<a href="mailto:pgsql-bugs@postgresql.org">pgsql-bugs@postgresql.org</a>)<br>
To make changes to your subscription:<br>
<a href="http://www.postgresql.org/mailpref/pgsql-bugs">http://www.postgresql.org/mailpref/pgsql-bugs&...;

</div>
</blockquote></span></body></html>




^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2014-02-20 22:39 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-02-19 22:00 Connection errors in PostgreSQL 9.3.2 fburgess@radiantblue.com
2014-02-19 23:07 ` bricklen <bricklen@gmail.com>
2014-02-19 23:44   ` Tom Lane <tgl@sss.pgh.pa.us>
2014-02-20 19:58 Re: Connection errors in PostgreSQL 9.3.2 fburgess@radiantblue.com
2014-02-20 21:54 ` Tom Lane <tgl@sss.pgh.pa.us>
2014-02-20 22:39 Re: Connection errors in PostgreSQL 9.3.2 fburgess@radiantblue.com

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