
Need help in enabling remote connection
--0050450181025e742e047763548e
Content-Type: text/plain; charset=ISO-8859-1
Hi,
I want a postgres client to be able to connect to a postgres sever on a
remote machine. But i'm not able to make it work. Assume both the machines
are on a LAN 10.0.0.* .Following available advice, this is what i did:
-- In pg_hba.conf, i added the line
host all all 10.0.0.1/24 trust
-- In postgresql.conf, i added the line
listen_addresses = 10.0.0.*
-- Restarted the server with the cmd
../pg_ctl -D <data_folder> reload
This doesn't work. What else should i do to make remote connection work?
I'm lost! Please help!
Thanks a lot,
Shruthi
--0050450181025e742e047763548e
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Hi,<br><br>I want a postgres client to be able to connect to a postgres sev=
er on a remote machine.=A0 But i'm not able to make it work.=A0 Assume =
both the machines are on a LAN 10.0.0.* .Following available advice, this i=
s what i did:<br>
<br>
<meta http-equiv=3D"CONTENT-TYPE" content=3D"text/html; charset=3Dutf-8">
<title></title>
<meta name=3D"GENERATOR" content=3D"OpenOffice.org 2.3 (Linux)">
<style type=3D"text/css">
<!--
[at] page { size: 21cm 29.7cm; margin: 2cm }
P { margin-bottom: 0.21cm }
-->
</style>
<p>-- In pg_hba.conf, i added the line<br> host all all
<a href=3D"http://10.0.0.1/24">10.0.0.1/24</a> trust</p>
<p>-- In postgresql.conf, i added the line<br> listen_addresses =3D
10.0.0.*</p>
<p>-- Restarted the server with the cmd <br> ./pg_ctl -D <data_folder>=
;
reload</p>
<p><br>This doesn't work.=A0 What else should i do to make remote conne=
ction work? <br></p><p>I'm lost!=A0 Please help!</p><p><br></p><p>Thank=
s a lot,</p><p>Shruthi<br></p>
--0050450181025e742e047763548e--
Re: Need help in enabling remote connection
This is a cryptographically signed message in MIME format.
--------------ms080808020909080702060605
Content-Type: multipart/alternative;
boundary="------------040201080704010108050903"
This is a multi-part message in MIME format.
--------------040201080704010108050903
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
Hello,
I think you make mistake writing "listen_addresses =3D 10.0.0.*". I doubt=
it can be done like this... Try "listen_addresses =3D '*'" first. Also
see, that addresses are in form '10.0.0.1' and not 10.0.0.1. (use ' )
If this doesn't help try telneting server (port 5432) from client
mashine. Maybe theres a firewall in between??
2009.11.02 15:26, Shruthi A ra=C5=A1=C4=97:
> Hi,
>
> I want a postgres client to be able to connect to a postgres sever on
> a remote machine. But i'm not able to make it work. Assume both the
> machines are on a LAN 10.0.0.* .Following available advice, this is
> what i did:
>
> -- In pg_hba.conf, i added the line
> host all all 10.0.0.1/24 <http://10.0.0.1/24> trust
>
> -- In postgresql.conf, i added the line
> listen_addresses =3D 10.0.0.*
>
> -- Restarted the server with the cmd
> ./pg_ctl -D <data_folder> reload
>
>
> This doesn't work. What else should i do to make remote connection wor=
k?
>
> I'm lost! Please help!
>
>
> Thanks a lot,
>
> Shruthi
>
--
Julius Tuskenis
Programavimo skyriaus vadovas
UAB nSoft
mob. +37068233050
--------------040201080704010108050903
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content=3D"text/html; charset=3DUTF-8" http-equiv=3D"Content-Type=
">
</head>
<body bgcolor=3D"#ffffff" text=3D"#000000">
Hello, <br>
<br>
I think you make mistake writing "listen_addresses =3D
10.0.0.*". I doubt it can be done like this... Try "listen_addresses =3D
'*'" first. Also see, that addresses are in form '10.0.0.1' and not
10.0.0.1. (use ' ) <br>
If this doesn't help try telneting server (port 5432) from client
mashine. Maybe theres a firewall in between??<br>
<br>
<br>
2009.11.02 15:26, Shruthi A ra=C5=A1=C4=97:
<blockquote
cite=3D"mid:6caee9520911020526q4216a7b7qfbc792f2677dbc30 [at] mai l.gmail.com"=
type=3D"cite">Hi,<br>
<br>
I want a postgres client to be able to connect to a postgres sever on a
remote machine.=C2=A0 But i'm not able to make it work.=C2=A0 Assume both=
the
machines are on a LAN 10.0.0.* .Following available advice, this is
what i did:<br>
<br>
<meta http-equiv=3D"CONTENT-TYPE" content=3D"text/html; charset=3DUTF-8=
">
<title></title>
<meta name=3D"GENERATOR" content=3D"OpenOffice.org 2.3 (Linux)">
<style type=3D"text/css">
<!--
[at] page { size: 21cm 29.7cm; margin: 2cm }
P { margin-bottom: 0.21cm }
-->
</style>
<p>-- In pg_hba.conf, i added the line<br>
host all all <a moz-do-not-send=3D"true" href=3D"http://10.0.0.1/24">10.0=
=2E0.1/24</a>
trust</p>
<p>-- In postgresql.conf, i added the line<br>
listen_addresses =3D
10.0.0.*</p>
<p>-- Restarted the server with the cmd <br>
=2E/pg_ctl -D <data_folder>
reload</p>
<p><br>
This doesn't work.=C2=A0 What else should i do to make remote connection
work? <br>
</p>
<p>I'm lost!=C2=A0 Please help!</p>
<p><br>
</p>
<p>Thanks a lot,</p>
<p>Shruthi<br>
</p>
</blockquote>
<br>
<br>
<pre class=3D"moz-signature" cols=3D"72">--
Julius Tuskenis
Programavimo skyriaus vadovas
UAB nSoft
mob. +37068233050</pre>
</body>
</html>
--------------040201080704010108050903--
--------------ms080808020909080702060605
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature
MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEH AQAAoIIGJjCC
Aw8wggJ4oAMCAQICCQCB1aFglJHbtzANBgkqhkiG9w0BAQQFADBNMQswCQYD VQQGEwJMVDEL
MAkGA1UECBMCTFQxDjAMBgNVBAoTBW5Tb2Z0MQ4wDAYDVQQLEwVuU29mdDER MA8GA1UEAxMI
blNvZnQgQ0EwHhcNMDkwNjI1MTgyNDUzWhcNMTAwNjI1MTgyNDUzWjBpMQsw CQYDVQQGEwJM
VDEQMA4GA1UEBxMHVmlsbml1czEOMAwGA1UEChMFblNvZnQxGDAWBgNVBAMT D0p1bGl1cyBU
dXNrZW5pczEeMBwGCSqGSIb3DQEJAR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kiG9w0BCQ8xUjBQMAsGCWCGSAFlAwQBAjAKBggqhkiG9w0DBzAO BggqhkiG9w0D
AgICAIAwDQYIKoZIhvcNAwICAUAwBwYFKw4DAgcwDQYIKoZIhvcNAwICASgw aQYJKwYBBAGC
NxAEMVwwWjBNMQswCQYDVQQGEwJMVDELMAkGA1UECBMCTFQxDjAMBgNVBAoT BW5Tb2Z0MQ4w
DAYDVQQLEwVuU29mdDERMA8GA1UEAxMIblNvZnQgQ0ECCQCB1aFglJHbtzBr BgsqhkiG9w0B
CRACCzFcoFowTTELMAkGA1UEBhMCTFQxCzAJBgNVBAgTAkxUMQ4wDAYDVQQK EwVuU29mdDEO
MAwGA1UECxMFblNvZnQxETAPBgNVBAMTCG5Tb2Z0IENBAgkAgdWhYJSR27cw DQYJKoZIhvcN
AQEBBQAEgYAZh9qKzCiHBXzzGFvLyGEpFTL3b0oAhcLHqCA/tVgpJT/Na2Wk NlLwdcOuh+m7
D91BPObiT8J7suLwSXBaBbdt1p2A0nux/DQo0XZAzArX65yAtbVTyyRzUGR6 DJ2hpaoVxeig
/HGrsE1Ab2xVCgS/AVMa2syD1hjYpADOYWszdwAAAAAAAA==
--------------ms080808020909080702060605--
Re: Need help in enabling remote connection
2009/11/2 Shruthi A <shruthi.iisc [at] gmail.com>:
> Hi,
>
> I want a postgres client to be able to connect to a postgres sever on a
> remote machine.=A0 But i'm not able to make it work.=A0 Assume both the m=
achines
> are on a LAN 10.0.0.* .Following available advice, this is what i did:
>
> -- In pg_hba.conf, i added the line
> host all all 10.0.0.1/24 trust
>
> -- In postgresql.conf, i added the line
> listen_addresses =3D 10.0.0.*
Try something like this:
listen_addresses =3D 'localhost,10.0.0.123'
port =3D 5432
assuming 123 is the correct number for your server's IP address
> -- Restarted the server with the cmd
> ./pg_ctl -D <data_folder> reload
>
> This doesn't work.=A0 What else should i do to make remote connection wor=
k?
>
> I'm lost!=A0 Please help!
>
> Thanks a lot,
>
> Shruthi
>
--
Brian Modra Land line: +27 23 5411 462
Mobile: +27 79 69 77 082
5 Jan Louw Str, Prince Albert, 6930
Postal: P.O. Box 2, Prince Albert 6930
South Africa
http://www.zwartberg.com/
--
Sent via pgsql-admin mailing list (pgsql-admin [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Re: Need help in enabling remote connection
--0-2038818122-1257184360=:87124
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
host all all =0A 10.0.0.1/24 trust
>> host all all <IP/32> trust
-- In postgresql.conf, i added the line
=09listen_addresses =3D=0A10.0.0.*
>> listen_address =3D *
& then restart the server.
--
Thanks
Sam
--- On Mon, 2/11/09, Shruthi A <shruthi.iisc [at] gmail.com> wrote:
From: Shruthi A <shruthi.iisc [at] gmail.com>
Subject: [ADMIN] Need help in enabling remote connection
To: pgsql-admin [at] postgresql.org
Date: Monday, 2 November, 2009, 1:26 PM
Hi,
I want a postgres client to be able to connect to a postgres sever on a rem=
ote machine.=A0 But i'm not able to make it work.=A0 Assume both the machin=
es are on a LAN 10.0.0.* .Following available advice, this is what i did:
=0A
=0A=0A=0A=09 =0A=09=0A=09 =0A=09=0A=0A=0A=0A-- In pg_hba.conf, i added the =
line
=09host all all =0A 10.0.0.1/24 trust=0A-- In pos=
tgresql.conf, i added the line
=09listen_addresses =3D=0A10.0.0.*=0A-- Restarted the server with the cmd=
=09./pg_ctl -D <data_folder>=0Areload=0A
This doesn't work.=A0 What else should i do to make remote connection work?=
I'm lost!=A0 Please help!
Thanks a lot,Shruthi
=0A=0A=0A=0A From cricket scores to your friends. Try the Yahoo! India=
Homepage! http://in.yahoo.com/trynew
--0-2038818122-1257184360=:87124
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
<table cellspacing=3D"0" cellpadding=3D"0" border=3D"0" ><tr><td valign=3D"=
top" style=3D"font: inherit;"><br>host all all =0A <a rel=
=3D"nofollow" target=3D"_blank" href=3D"http://10.0.0.1/24">10.0.0.1/24</a=
> trust<br><br>>> host all all <IP/32> trust <br><br>-=
- In postgresql.conf, i added the line<br><p>=09listen_addresses =3D=0A10.0=
..0.*</p><br>>> listen_address =3D * <br><br>& then restart the se=
rver. <br><br><br>--<br>Thanks <br>Sam<br><br>--- On <b>Mon, 2/11/09, Shrut=
hi A <i><shruthi.iisc [at] gmail.com></i></b> wrote:<br><blockquote style=
=3D"border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left=
: 5px;"><br>From: Shruthi A <shruthi.iisc [at] gmail.com><br>Subject: [ADM=
IN] Need help in enabling remote connection<br>To: pgsql-admin [at] postgresql.o=
rg<br>Date: Monday, 2 November, 2009, 1:26 PM<br><br><div id=3D"yiv20225349=
78">Hi,<br><br>I want a postgres client to be able to connect to a postgres=
sever on a remote machine. But i'm not able to make it work. A=
ssume both the machines are on a LAN 10.0.0.* .Following available advice, =
this is what i did:<br>=0A<br>=0A=0A=0A=09 =0A=09<title></title>=0A=09 =0A=
=09<style type=3D"text/css">=0A<!--=0A _filtered #yiv2022534978 {margin:2cm=
;}=0A#yiv2022534978 P {margin-bottom:0.21cm;}=0A-->=0A</style>=0A=0A<p>-- I=
n pg_hba.conf, i added the line<br>=09host all all =0A <a =
rel=3D"nofollow" target=3D"_blank" href=3D"http://10.0.0.1/24">10.0.0.1/24=
</a> trust</p>=0A<p>-- In postgresql.conf, i added the line<br>=09=
listen_addresses =3D=0A10.0.0.*</p>=0A<p>-- Restarted the server with the c=
md <br>=09./pg_ctl -D <data_folder>=0Areload</p>=0A<p><br>This doesn'=
t work. What else should i do to make remote connection work? <br></p=
><p>I'm lost! Please help!</p><p><br></p><p>Thanks a lot,</p><p>Shrut=
hi<br></p>=0A</div></blockquote></td></tr></table><br>=0A <!--3--><hr =
size=3D1></hr> Connect more, do more and share more with Yahoo! India Mail.=
<a =0Ahref=3D"http://in.rd.yahoo.com/tagline_galaxy_3/*http://in.overview.=
mail.yahoo.com/" target=3D"_blank"> Learn more</a>.
--0-2038818122-1257184360=:87124--
Re: Need help in enabling remote connection
--0016e646432c16c835047773a293
Content-Type: text/plain; charset=ISO-8859-1
Hi all,
Thanks a lot for all your replies. The problem is solved now. This is the
correct thing to do: listen_addresses = '*'
And then restart the service.
Additional notes:
-- Remember to use single quotes around the * else it will give syntax
error.
-- The listen_addresses parameter specifies the client addresses, and not
the server.
-- Once this service is started, telneting the server on the given port
successfully connects.
-- Dear Ian Lea, i guess 10.0.0.1/24 is the same as 10.0.0.0/24 as the
mask '24' means that the first 3 octets (24 bits from the left hand side)
must match ie both mean simply 10.0.0.*
-- And i think 'trust' should be fine assuming that this will be used on an
isolated network with a few trusted machines or a secure network where a
firewall protects a given set of ports.
-- Dear Brian Modra, i guess listen_addresses = 'localhost,10.0.0.123'
will give error. It should be written as listen_addresses =
'localhost','10.0.0.123' that is each IP should be quoted separately.
Thanks again,
Shruthi
On Mon, Nov 2, 2009 at 6:56 PM, Shruthi A <shruthi.iisc [at] gmail.com> wrote:
> Hi,
>
> I want a postgres client to be able to connect to a postgres sever on a
> remote machine. But i'm not able to make it work. Assume both the machines
> are on a LAN 10.0.0.* .Following available advice, this is what i did:
>
> -- In pg_hba.conf, i added the line
> host all all 10.0.0.1/24 trust
>
> -- In postgresql.conf, i added the line
> listen_addresses = 10.0.0.*
>
> -- Restarted the server with the cmd
> ./pg_ctl -D <data_folder> reload
>
>
> This doesn't work. What else should i do to make remote connection work?
>
> I'm lost! Please help!
>
>
> Thanks a lot,
>
> Shruthi
>
--0016e646432c16c835047773a293
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Hi all,<br><br>Thanks a lot for all your replies.=A0 The problem is solved =
now.=A0 This is the correct thing to do:=A0=A0=A0 listen_addresses =3D '=
;*'<br>And then restart the service.=A0 <br><br>Additional notes:<br>--=
Remember to use single quotes around the * else it will give syntax error.=
<br>
-- The listen_addresses parameter specifies the client addresses, and not t=
he server.<br>-- Once this service is started, telneting the server on the =
given port successfully connects.<br>-- Dear Ian Lea, i guess <a href=3D"ht=
tp://10.0.0.1/24">10.0.0.1/24</a>=A0 is the same as <a href=3D"http://10.0.=
0.0/24">10.0.0.0/24</a>=A0 as the mask '24' means that the first 3 =
octets (24 bits from the left hand side) must match ie both mean simply 10.=
0.0.*<br>
-- And i think 'trust' should be fine assuming that this will be us=
ed on an isolated network with a few trusted machines or a secure network w=
here a firewall protects a given set of ports.<br>-- Dear Brian Modra, i gu=
ess=A0=A0 listen_addresses =3D 'localhost,10.0.0.123'=A0=A0 will gi=
ve error. It should be written as=A0=A0 listen_addresses =3D 'localhost=
','10.0.0.123'=A0 that is each IP should be quoted separately.<=
br>
<br>Thanks again,<br>Shruthi<br><br><br><div class=3D"gmail_quote">On Mon, =
Nov 2, 2009 at 6:56 PM, Shruthi A <span dir=3D"ltr"><<a href=3D"mailto:s=
hruthi.iisc [at] gmail.com">shruthi.iisc [at] gmail.com</a>></span> wrote:<br><blo=
ckquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, 204,=
204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>I want a postgres client to be able to connect to a postgres sev=
er on a remote machine.=A0 But i'm not able to make it work.=A0 Assume =
both the machines are on a LAN 10.0.0.* .Following available advice, this i=
s what i did:<br>
<br>
=09
=09
=09
=09
<p>-- In pg_hba.conf, i added the line<br> host all all
<a href=3D"http://10.0.0.1/24" target=3D"_blank">10.0.0.1/24</a> =
trust</p>
<p>-- In postgresql.conf, i added the line<br> listen_addresses =3D
10.0.0.*</p>
<p>-- Restarted the server with the cmd <br> ./pg_ctl -D <data_folder>=
;
reload</p>
<p><br>This doesn't work.=A0 What else should i do to make remote conne=
ction work? <br></p><p>I'm lost!=A0 Please help!</p><p><br></p><p>Thank=
s a lot,</p><p>Shruthi<br></p>
</blockquote></div><br>
--0016e646432c16c835047773a293--
Re: Need help in enabling remote connection
On Tue, Nov 3, 2009 at 1:53 AM, Shruthi A <shruthi.iisc [at] gmail.com> wrote:
> Hi all,
>
> Thanks a lot for all your replies.=A0 The problem is solved now.=A0 This =
is the
> correct thing to do:=A0=A0=A0 listen_addresses =3D '*'
> And then restart the service.
>
> Additional notes:
> -- Remember to use single quotes around the * else it will give syntax
> error.
> -- The listen_addresses parameter specifies the client addresses, and not
> the server.
No, the listen_address specifies which SERVER ip address to listen on.
* means to listen on all interfaces. You can pick individual
interfaces to listen on on the server by changing * to one of a
server's IP addresses.
> -- Once this service is started, telneting the server on the given port
> successfully connects.
> -- Dear Ian Lea, i guess 10.0.0.1/24=A0 is the same as 10.0.0.0/24=A0 as =
the
> mask '24' means that the first 3 octets (24 bits from the left hand side)
> must match ie both mean simply 10.0.0.*
Actually 10.0.0.0/24 means that the right hand 24 bits don't matter,
so anything starting with 10. will match.
> -- And i think 'trust' should be fine assuming that this will be used on =
an
> isolated network with a few trusted machines or a secure network where a
> firewall protects a given set of ports.
Exactly. Most databases used by an application are firewalled off in
such a way that having strict passworded access just moves the place
your vulnerable to db hacking from the db to the app.
> -- Dear Brian Modra, i guess=A0=A0 listen_addresses =3D 'localhost,10.0.0=
..123'
> will give error. It should be written as=A0=A0 listen_addresses =3D
> 'localhost','10.0.0.123'=A0 that is each IP should be quoted separately.
Yep. same is true for things like search_path.
Glad you're up and running. Hope you're having fun with your db.
--
Sent via pgsql-admin mailing list (pgsql-admin [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Re: Need help in enabling remote connection
Scott Marlowe <scott.marlowe [at] gmail.com> wrote:
>> -- Dear Ian Lea, i guess 10.0.0.1/24 is the same as 10.0.0.0/24
>> as the mask '24' means that the first 3 octets (24 bits from the
>> left hand side) must match ie both mean simply 10.0.0.*
>
> Actually 10.0.0.0/24 means that the right hand 24 bits don't matter,
> so anything starting with 10. will match.
I think you're mistaken on that. The comment in pg_hbs.conf matches
everything else I can find on the topic:
# CIDR-ADDRESS specifies the set of hosts the record matches.
# It is made up of an IP address and a CIDR mask that is an integer
# (between 0 and 32 (IPv4) or 128 (IPv6) inclusive) that specifies
# the number of significant bits in the mask.
-Kevin
--
Sent via pgsql-admin mailing list (pgsql-admin [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Re: Need help in enabling remote connection
On Tue, Nov 3, 2009 at 11:26 AM, Kevin Grittner
<Kevin.Grittner [at] wicourts.gov> wrote:
> Scott Marlowe <scott.marlowe [at] gmail.com> wrote:
>
>>> -- Dear Ian Lea, i guess 10.0.0.1/24 =A0is the same as 10.0.0.0/24
>>> as the mask '24' means that the first 3 octets (24 bits from the
>>> left hand side) must match ie both mean simply 10.0.0.*
>>
>> Actually 10.0.0.0/24 means that the right hand 24 bits don't matter,
>> so anything starting with 10. will match.
>
> I think you're mistaken on that. =A0The comment in pg_hbs.conf matches
> everything else I can find on the topic:
>
> # CIDR-ADDRESS specifies the set of hosts the record matches.
> # It is made up of an IP address and a CIDR mask that is an integer
> # (between 0 and 32 (IPv4) or 128 (IPv6) inclusive) that specifies
> # the number of significant bits in the mask.
Yeap, got it backwards. Thanks.
--
Sent via pgsql-admin mailing list (pgsql-admin [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Re: Need help in enabling remote connection
On Tue, November 3, 2009 10:10, Scott Marlowe wrote:
> On Tue, Nov 3, 2009 at 1:53 AM, Shruthi A <shruthi.iisc [at] gmail.com> wrot=
e:
>> Hi all,
>>
>> -- Once this service is started, telneting the server on the given por=
t
>> successfully connects.
>> -- Dear Ian Lea, i guess 10.0.0.1/24=A0 is the same as 10.0.0.0/24=A0 =
as the
>> mask '24' means that the first 3 octets (24 bits from the left hand
>> side)
>> must match ie both mean simply 10.0.0.*
>
> Actually 10.0.0.0/24 means that the right hand 24 bits don't matter,
> so anything starting with 10. will match.
>
Actually, it is the 24 left-most bits that matter, so this sets up a
network of 24 bits with 255 hosts that can connect.
I wasn't sure of this, so I just verified it with one of our network
engineers at work.
Tim
--
Timothy J. Bruce
Registered Linux User #325725
--
Sent via pgsql-admin mailing list (pgsql-admin [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin