Andreas Wenk | 1 Mar 2009 01:01
Picon
Gravatar

Re: grant question


Tena Sakai schrieb:
> Hi,
> 
> Nah, I don't think that theory holds water...
> 
>   [tsakai <at> vixen ~]$ psql canon gjoslyn
>   Password for user gjoslyn:
>   Welcome to psql 8.3.6, the PostgreSQL interactive terminal.
> 
>   canon=>
>   canon=> \z gallo.gallo.unlinkcol1
>                          Access privileges for database "canon"
>    Schema |    Name    | Type  |                    Access 
> privileges                    
>   
> --------+------------+-------+----------------------------------------------------------
>    gallo  | unlinkcol1 | table | 
> {gbrush=arwdxt/gbrush,gjoslyn=r/gbrush,galloan=r/gbrush}
>   (1 row)
> 
>   -- as far as the table is concerned, it is readable
>   -- let me reproduce the error
>   canon=> select * from gallo.unlinkcol1 limit 4;
>   ERROR:  permission denied for schema gallo
> 
> I just feel that this is similar to a common unix file access
> problem in that the file itself is readable, but one or more
> directories in the path is not giving search permission.  If
> I read the error with such in mind, it makes more sense.
(Continue reading)

Tena Sakai | 1 Mar 2009 01:04
Picon

Re: grant question

Hi Andy,

Many thanks!  That is the silver bullet I needed.
Hoorey!

Regards,

Tena Sakai
tsakai <at> gallo.ucsf.edu

-----Original Message-----
From: Andreas Wenk [mailto:a.wenk <at> netzmeister-st-pauli.de]
Sent: Sat 2/28/2009 4:01 PM
To: Tena Sakai; pgsql-admin <at> postgresql.org
Subject: Re: [ADMIN] grant question



Tena Sakai schrieb:
> Hi,
>
> Nah, I don't think that theory holds water...
>
>   [tsakai <at> vixen ~]$ psql canon gjoslyn
>   Password for user gjoslyn:
>   Welcome to psql 8.3.6, the PostgreSQL interactive terminal.
>
>   canon=>
>   canon=> \z gallo.gallo.unlinkcol1
>                          Access privileges for database "canon"
>    Schema |    Name    | Type  |                    Access
> privileges                   
>  
> --------+------------+-------+----------------------------------------------------------
>    gallo  | unlinkcol1 | table |
> {gbrush=arwdxt/gbrush,gjoslyn=r/gbrush,galloan=r/gbrush}
>   (1 row)
>
>   -- as far as the table is concerned, it is readable
>   -- let me reproduce the error
>   canon=> select * from gallo.unlinkcol1 limit 4;
>   ERROR:  permission denied for schema gallo
>
> I just feel that this is similar to a common unix file access
> problem in that the file itself is readable, but one or more
> directories in the path is not giving search permission.  If
> I read the error with such in mind, it makes more sense.
>
> \z command wouldn't let me look at the permission of the schema:
>
>   canon=# \z gallo
>     Access privileges for database "canon"
>    Schema | Name | Type | Access privileges
>   --------+------+------+-------------------
>   (0 rows)
>
> What can I do?
Hi,

sure that does not work because the user gjoslyn from the group galloan
is not allowed to use the schema gallo ...

GRANT USAGE ON SCHEMA gallo to galloan;

will help ...

Cheers

Andy

>
> Tena Sakai
> tsakai <at> gallo.ucsf.edu
>
>
>
> -----Original Message-----
> From: Tena Sakai
> Sent: Sat 2/28/2009 3:04 PM
> To: Tena Sakai; Andreas Wenk
> Cc: pgsql-admin <at> postgresql.org
> Subject: RE: [ADMIN] grant question
>
> Hi,
>
> Maybe I found the underlying problem...
> too psql, I typed:
>
>   canon=# \dn gallo
>
> and it told me:
>
>   List of schemas
>    Name  | Owner
>   -------+-------
>    gallo | ysu
>   (1 row)
>
> Maybe the supersuer postgres is unable to grant select
> on that table...  But it told me it did.
>
>  >> canon=# grant select on gallo.unlinkcol1 to galloan;
>  >> GRANT
>
> It doesn't make sense...  I am confused.
>
> Tena Sakai
> Tsakai <at> gallo.ucsf.edu
>
>
>
> -----Original Message-----
> From: pgsql-admin-owner <at> postgresql.org on behalf of Tena Sakai
> Sent: Sat 2/28/2009 2:55 PM
> To: Andreas Wenk
> Cc: pgsql-admin <at> postgresql.org
> Subject: Re: [ADMIN] grant question
>
> Hi Andy,
>
> Thank you for your walk through.
> Here's what I did, emulating your guidance and spirit:
>
> -- about to create a new role
> canon=# create role galloan;
> CREATE ROLE
> canon=#
> canon=# \dg galloan
>                                List of roles
>  Role name | Superuser | Create role | Create DB | Connections | Member of
> -----------+-----------+-------------+-----------+-------------+-----------
>  galloan   | no        | no          | no        | no limit    | {}
> (1 row)
>
> -- grant a particular select on this role
> canon=# grant select on gallo.unlinkcol1 to galloan;
> GRANT
>
> -- put a user/role into galloan group/role
> canon=# grant galloan to gjoslyn;
> GRANT ROLE
> canon=#
> canon=# \dg gjoslyn
>                                   List of roles
>  Role name | Superuser | Create role | Create DB | Connections |   
> Member of   
> -----------+-----------+-------------+-----------+-------------+------------------
>  gjoslyn   | no        | no          | no        | no limit    |
> {wetlab,galloan}
> (1 row)
>
> --now test it as user gjoslyn
>
> [tsakai <at> vixen ~]$ psql canon gjoslyn
> Password for user gjoslyn:
> Welcome to psql 8.3.6, the PostgreSQL interactive terminal.
>
> Type:  \copyright for distribution terms
>        \h for help with SQL commands
>        \? for help with psql commands
>        \g or terminate with semicolon to execute query
>        \q to quit
>
> canon=>
> canon=> select * from gallo.unlinkcol1 limit 5;
> ERROR:  permission denied for schema gallo
> canon=>
> -- it is having a problem with this schema called gallo
> -- as you can see below, there is no problem with schema public
>
> canon=> select * from allele limit 5;
>  alleleid | markerid | value |       datecreated       |    datereplaced   
> ----------+----------+-------+-------------------------+---------------------
>   3775273 |  1890310 | 138   | 2007-10-30 20:13:48.104 | 3000-01-01 12:00:00
>   3775276 |  1890310 | 136   | 2007-10-30 20:13:48.35  | 3000-01-01 12:00:00
>   3775278 |  1890310 | 122   | 2007-10-30 20:13:48.731 | 3000-01-01 12:00:00
>   3775280 |  1890310 | 142   | 2007-10-30 20:13:49.358 | 3000-01-01 12:00:00
>   3775282 |  1890310 | 124   | 2007-10-30 20:13:49.86  | 3000-01-01 12:00:00
> (5 rows)
>
> So, I don't know how to cure this problem.
> Any hints, poiters are appreciated.
>
> Regards,
>
> Tena Sakai
> tsakai <at> gallo.ucsf.edu
>
>
>
> -----Original Message-----
> From: Andreas Wenk [mailto:a.wenk <at> netzmeister-st-pauli.de]
> Sent: Sat 2/28/2009 1:01 PM
> To: Tena Sakai
> Cc: pgsql-admin <at> postgresql.org
> Subject: Re: [ADMIN] grant question
>
>
> Tena Sakai schrieb:
>  > Thank you, Scott, for your reply.
>  >
>  >  > Two problems.  1: you don't grant select on schemas, you grant it on
>  >  > tables.  2: case folding.  If you're gonna use a name "schema_Z" then
>  >  > you have to quote it, because it's mixed case, not all lower.
>  >
>  >  > You need to grant it for each table.
>  >
>  > In actual command issued, there is no case mixing.  I wanted
>  > to emphasize the argument was a schema name, not a table name.
>  > But this means as new tables get created in the schema, a set
>  > of new commands must be issued?
>  >
>  >  > Note that instead of granting it to a user, you should grant it
>  >  > to a role, then give membership to that role to the user.
>  >
>  > That sounds like a good idea.  Would you mind showing an exmple?
>
> Hi Tena,
>
> -- your user role
> roletest=# CREATE ROLE tena LOGIN;
> CREATE ROLE
> -- a group role
> roletest=# CREATE ROLE musicians;
> CREATE ROLE
> -- put tena 'in' the group role
> roletest=# GRANT musicians to tena;
> GRANT ROLE
>
> -- connect to roletest a user tena
> roletest=# \c roletest tena
> You are now connected to database "roletest" as user "tena".
> roletest=> select * from test;
> ERROR:  permission denied for relation test
> STATEMENT:  select * from test;
> ERROR:  permission denied for relation test
>
> -- grant SELECT right as superuser in roletest
> roletest=> \c roletest postgres
> You are now connected to database "roletest" as user "postgres".
> roletest=# GRANT SELECT on test to musicians;
> GRANT
> roletest=# \c roletest tena
> You are now connected to database "roletest" as user "tena".
> roletest=> SELECT * FROM test;
>   id | value
> ----+-------
> (0 rows)
>
> Cheers
>
> Andy
>
> --
> St.Pauli - Hamburg - Germany
>
> Andreas Wenk
>
>
>  > Regards,
>  >
>  > Tena Sakai
>  > tsakai <at> gallo.ucsf.edu
>  >
>  >
>  > -----Original Message-----
>  > From: Scott Marlowe [mailto:scott.marlowe <at> gmail.com]
>  > Sent: Sat 2/28/2009 12:04 PM
>  > To: Tena Sakai
>  > Cc: pgsql-admin <at> postgresql.org
>  > Subject: Re: [ADMIN] grant question
>  >
>  > On Sat, Feb 28, 2009 at 12:56 PM, Tena Sakai <tsakai <at> gallo.ucsf.edu>
> wrote:
>  >  > Hi Everybody,
>  >  >
>  >  > I want to issue a command:
>  >  >
>  >  >   grant select on schema_Z to user_a;
>  >  >
>  >  > so that the user_a can look at all tables in schema_Z.
>  >  > Sadly, what I get is:
>  >  >   ERROR:  relation "schema_Z" does not exist
>  >
>  > Two problems.  1: you don't grant select on schemas, you grant it on
>  > tables.  2: case folding.  If you're gonna use a name "schema_Z" then
>  > you have to quote it, because it's mixed case, not all lower.
>  >
>  >  > I tried:
>  >  >
>  >  >   grant select on schema_Z.* to user_a;
>  >
>  > Sorry no wildcarding on grant (At least not yet).  You need to grant
>  > it for each table.  Note that instead of granting it to a user, you
>  > should grant it to a role, then give membership to that role to the
>  > user.
>  >
>
>
>
>
>
>



Bryan Keith | 1 Mar 2009 01:51

postgres 8.2 doesn't start after ubuntu upgrade

Hello,

I recently upgraded from Ubuntu 8.04 to 8.10.  After the OS upgrade I
choose to upgrade software as well (all quite automated in ubuntu). 
Previously I was running postgres 8.2, but now I have postgres 8.3 (and
hopefully 8.2 as well).

I can run 8.3 and see the dbs (the default ones only; not mine) with psql.
 But when I try to start 8.2 nothing happens:

$ /etc/init.d/postgresql-8.3 start
 * Starting PostgreSQL 8.3 database server
                  [ OK ]
$ /etc/init.d/postgresql-8.3 stop
 * Stopping PostgreSQL 8.3 database server
                  [ OK ]
$ /etc/init.d/postgresql-8.2 start
$ /etc/init.d/postgresql-8.2 stop
$

You can see I get no response when trying to start 8.2.  What can I do?

To complicate matters I was using pg_dumpall to daily backup the db and
then used rdiff-backup to keep increments.  For some reason on August 1,
2008 pg_dumpall went from 50MB output (correct) to a few lines (!?).  So I
can't simply restore to 8.3 (the last one is from six months ago :(.  I do
have an image of the hard drive (using partimage) from before the upgrade,
but that would be getting pretty desperate to have to go back there.

Bryan

--

-- 
Sent via pgsql-admin mailing list (pgsql-admin <at> postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Daniel J. Summers | 1 Mar 2009 03:54
Favicon
Gravatar

Re: postgres 8.2 doesn't start after ubuntu upgrade

Bryan Keith wrote:
> I can run 8.3 and see the dbs (the default ones only; not mine) with psql.
>   
I ran into this on an upgrade - however, I didn't do what I'm about to 
describe, and I lost all my data. Luckily, it wasn't the only place 
where it was, but there was some development stuff that I had to 
reaccomplish. Once I had lost it, I discovered the command below...

The command you're looking for is pg_upgradecluster. There's a 
description of it at 
http://manpages.ubuntu.com/manpages/hardy/man8/pg_upgradecluster.8.html 
. I believe the only time you'll need this is if you change the major or 
minor version - for 8.3.5 to 8.3.6, for example, I believe there's no 
upgrade required.

-- 
Daniel J. Summers
*Owner, DJS Consulting* Support <http://support.djs-consulting.com/> • 
Tech Blog <http://www.djs-consulting.com/linux/blog>

daniel <at> djs-consulting.com <mailto:daniel <at> djs-consulting.com> • 
http://www.djs-consulting.com <http://www.djs-consulting.com/>

GEEKCODE 3.12 GCS/IT d s-:+ a C++ L++ E--- W++ N++ o? K- w !O M--
V PS+ PE++ Y? !PGP t+ 5? X+ R* tv b+ DI++ D+ G- e h---- r+++ y++++

--

-- 
Sent via pgsql-admin mailing list (pgsql-admin <at> postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Scott Marlowe | 1 Mar 2009 04:56
Picon

Re: postgres 8.2 doesn't start after ubuntu upgrade

On Sat, Feb 28, 2009 at 7:54 PM, Daniel J. Summers
<daniel <at> djs-consulting.com> wrote:
> Bryan Keith wrote:
>>
>> I can run 8.3 and see the dbs (the default ones only; not mine) with psql.
>>
>
> I ran into this on an upgrade - however, I didn't do what I'm about to
> describe, and I lost all my data. Luckily, it wasn't the only place where it
> was, but there was some development stuff that I had to reaccomplish. Once I
> had lost it, I discovered the command below...
>
> The command you're looking for is pg_upgradecluster. There's a description
> of it at
> http://manpages.ubuntu.com/manpages/hardy/man8/pg_upgradecluster.8.html . I
> believe the only time you'll need this is if you change the major or minor
> version - for 8.3.5 to 8.3.6, for example, I believe there's no upgrade
> required.

You're absolutely right.  FYI, pg has a different numbering system
where the first two digits are pretty much both major numbers.  8.4
and 8.3 are two distinct major versions, and are not binary on disc
compatible etc.   That means that 8.2 and 8.1 were as different as 8.0
and 7.4 in terms of things like file formatting and catalogues

And pg_upgradescluster is a great little bit of code.  I wish RedHat
had such things. (If they do someone please tell me.)

--

-- 
Sent via pgsql-admin mailing list (pgsql-admin <at> postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Bryan Keith | 1 Mar 2009 05:41

Re: postgres 8.2 doesn't start after ubuntu upgrade

> On Sat, Feb 28, 2009 at 7:54 PM, Daniel J. Summers
> <daniel <at> djs-consulting.com> wrote:
>> Bryan Keith wrote:
>>>
>>> I can run 8.3 and see the dbs (the default ones only; not mine) with
>>> psql.
>>>
>>
>> I ran into this on an upgrade - however, I didn't do what I'm about to
>> describe, and I lost all my data. Luckily, it wasn't the only place
>> where it
>> was, but there was some development stuff that I had to reaccomplish.
>> Once I
>> had lost it, I discovered the command below...
>>
>> The command you're looking for is pg_upgradecluster. There's a
>> description
>> of it at
>> http://manpages.ubuntu.com/manpages/hardy/man8/pg_upgradecluster.8.html
>> . I
>> believe the only time you'll need this is if you change the major or
>> minor
>> version - for 8.3.5 to 8.3.6, for example, I believe there's no upgrade
>> required.
>

This sounds promising.  However, how do I start the cluster?  Here's what
I did.  Remember that trying to start 8.2 doesn't do anything.

$ /etc/init.d/postgresql-8.2 start
$ pg_upgradecluster 8.2 main
Error: specified cluster is not running
$ ls /etc/postgresql/8.2
main
$

Am I doing something wrong here?

Bryan

--

-- 
Sent via pgsql-admin mailing list (pgsql-admin <at> postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Lukas | 1 Mar 2009 09:37
Picon

Re: Postgesql and SSL

Hello again,

 nope, no use of it.. Situation stays the same.. Does any one have more
ideas?

--
Lukas
UAB nSoft
http://www.nsoft.lt
Lukas at nsoft.lt
+370 655 10 655

> You defo have all the required openssl headers and libs and configure
> succeeds? It's a longshot, but I wonder if the prefix is somehow making
> configure read the string wrong? I've never really needed to use prefix,
> but what happend if you try
>
> ./configure --prefix='/DB' --with-openssl
>
> or perhaps
>
> ./configure --with-openssl  --prefix=/DB
>
>
>
> --- On Sat, 28/2/09, Lukas <Lukas <at> fmf.vtu.lt> wrote:
>
>> From: Lukas <Lukas <at> fmf.vtu.lt>
>> Subject: [ADMIN] Postgesql and SSL
>> To: pgsql-admin <at> postgresql.org
>> Date: Saturday, 28 February, 2009, 10:18 PM
>> Hello,
>>
>>  I am trying to run PostgreSQL with SSL, so I compiled and
>> linked with
>> options:
>>
>> ./configure --prefix=/DB --with-openssl
>>
>> Configured and installed successfully.
>> In postgresql.conf I have option "ssl = on"
>> When starting Postgres I get error:
>> LOG:  SSL is not supported by this build
>> FATAL:  invalid value for parameter "ssl": 1
>> DEBUG:  proc_exit(1)
>> DEBUG:  shmem_exit(1)
>> DEBUG:  exit(1)
>>
>> Where is the problem? Is here versions which does not
>> support SSL, it
>> would be strange..
>>
>> Versions used:
>> PostgreSQL 8.3.4
>> OpenSSL 0.9.8j
>>
>>
>>
>> --
>> Lukas
>> UAB nSoft
>> http://www.nsoft.lt
>> Lukas at nsoft.lt
>> +370 655 10 655
>>
>>
>>
>>
>> --
>> This message has been scanned for viruses and
>> dangerous content by
>> OpenProtect(http://www.openprotect.com), and is
>> believed to be clean.
>>
>>
>> --
>> Sent via pgsql-admin mailing list
>> (pgsql-admin <at> postgresql.org)
>> To make changes to your subscription:
>> http://www.postgresql.org/mailpref/pgsql-admin
>
>
>
>
> --
> Sent via pgsql-admin mailing list (pgsql-admin <at> postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin
>
> --
> This message has been scanned for viruses and
> dangerous content by OpenProtect(http://www.openprotect.com), and is
> believed to be clean.
>
>

-- 
This message has been scanned for viruses and
dangerous content by OpenProtect(http://www.openprotect.com), and is
believed to be clean.

--

-- 
Sent via pgsql-admin mailing list (pgsql-admin <at> postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Glyn Astill | 1 Mar 2009 13:49
Picon
Favicon

Re: Postgesql and SSL

have you generated the ssl certificates too?

--- On Sun, 1/3/09, Lukas <Lukas <at> fmf.vtu.lt> wrote:

> From: Lukas <Lukas <at> fmf.vtu.lt>
> Subject: Re: [ADMIN] Postgesql and SSL
> To: pgsql-admin <at> postgresql.org
> Date: Sunday, 1 March, 2009, 8:37 AM
> Hello again,
> 
>  nope, no use of it.. Situation stays the same.. Does any
> one have more
> ideas?
> 
> 
> --
> Lukas
> UAB nSoft
> http://www.nsoft.lt
> Lukas at nsoft.lt
> +370 655 10 655
> 
> 
> > You defo have all the required openssl headers and
> libs and configure
> > succeeds? It's a longshot, but I wonder if the
> prefix is somehow making
> > configure read the string wrong? I've never really
> needed to use prefix,
> > but what happend if you try
> >
> > ./configure --prefix='/DB' --with-openssl
> >
> > or perhaps
> >
> > ./configure --with-openssl  --prefix=/DB
> >
> >
> >
> > --- On Sat, 28/2/09, Lukas <Lukas <at> fmf.vtu.lt>
> wrote:
> >
> >> From: Lukas <Lukas <at> fmf.vtu.lt>
> >> Subject: [ADMIN] Postgesql and SSL
> >> To: pgsql-admin <at> postgresql.org
> >> Date: Saturday, 28 February, 2009, 10:18 PM
> >> Hello,
> >>
> >>  I am trying to run PostgreSQL with SSL, so I
> compiled and
> >> linked with
> >> options:
> >>
> >> ./configure --prefix=/DB --with-openssl
> >>
> >> Configured and installed successfully.
> >> In postgresql.conf I have option "ssl =
> on"
> >> When starting Postgres I get error:
> >> LOG:  SSL is not supported by this build
> >> FATAL:  invalid value for parameter
> "ssl": 1
> >> DEBUG:  proc_exit(1)
> >> DEBUG:  shmem_exit(1)
> >> DEBUG:  exit(1)
> >>
> >> Where is the problem? Is here versions which does
> not
> >> support SSL, it
> >> would be strange..
> >>
> >> Versions used:
> >> PostgreSQL 8.3.4
> >> OpenSSL 0.9.8j
> >>
> >>
> >>
> >> --
> >> Lukas
> >> UAB nSoft
> >> http://www.nsoft.lt
> >> Lukas at nsoft.lt
> >> +370 655 10 655
> >>
> >>
> >>
> >>
> >> --
> >> This message has been scanned for viruses and
> >> dangerous content by
> >> OpenProtect(http://www.openprotect.com), and is
> >> believed to be clean.
> >>
> >>
> >> --
> >> Sent via pgsql-admin mailing list
> >> (pgsql-admin <at> postgresql.org)
> >> To make changes to your subscription:
> >> http://www.postgresql.org/mailpref/pgsql-admin
> >
> >
> >
> >
> > --
> > Sent via pgsql-admin mailing list
> (pgsql-admin <at> postgresql.org)
> > To make changes to your subscription:
> > http://www.postgresql.org/mailpref/pgsql-admin
> >
> > --
> > This message has been scanned for viruses and
> > dangerous content by
> OpenProtect(http://www.openprotect.com), and is
> > believed to be clean.
> >
> >
> 
> 
> 
> -- 
> This message has been scanned for viruses and
> dangerous content by
> OpenProtect(http://www.openprotect.com), and is
> believed to be clean.
> 
> 
> -- 
> Sent via pgsql-admin mailing list
> (pgsql-admin <at> postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin

--

-- 
Sent via pgsql-admin mailing list (pgsql-admin <at> postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Thomas Pundt | 1 Mar 2009 13:49
Picon
Favicon

Re: Postgesql and SSL

Lukas schrieb:
>  nope, no use of it.. Situation stays the same.. Does any one have more
> ideas?
[...]
>>>  I am trying to run PostgreSQL with SSL, so I compiled and
>>> linked with
>>> options:
>>>
>>> ./configure --prefix=/DB --with-openssl
>>>
>>> Configured and installed successfully.
>>> In postgresql.conf I have option "ssl = on"
>>> When starting Postgres I get error:
>>> LOG:  SSL is not supported by this build
>>> FATAL:  invalid value for parameter "ssl": 1
>>> DEBUG:  proc_exit(1)
>>> DEBUG:  shmem_exit(1)
>>> DEBUG:  exit(1)
>>>
>>> Where is the problem? Is here versions which does not
>>> support SSL, it
>>> would be strange..
>>>
>>> Versions used:
>>> PostgreSQL 8.3.4
>>> OpenSSL 0.9.8j

well, probably; in a situation like this I'd first check for any errors
from the configure step. Did it by any chance complain about not
finding the SSL library?

Next thing to check: is the postmaster linked against the SSL library?
   cd /your/postgres/install/path/bin
   ldd postgres|grep ssl

should output something like
   libssl.so.0.9.7 => /usr/lib64/libssl.so.0.9.7 (0x0000002a95775000)

if not, SSL is likely not compiled in; go back to checking the
configure part.

If you have positively confirmed, that SSL support is compiled in,
you likely simply don't use your newly built postgres. Check paths
and start scripts and make sure, it uses your new built binaries.

If that's not it, I think you have to provide more information about
your platform.

Ciao,
Thomas

--

-- 
Sent via pgsql-admin mailing list (pgsql-admin <at> postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Bryan Keith | 1 Mar 2009 15:39

Re: postgres 8.2 doesn't start after ubuntu upgrade

>> On Sat, Feb 28, 2009 at 7:54 PM, Daniel J. Summers
>> <daniel <at> djs-consulting.com> wrote:
>>>
>>> The command you're looking for is pg_upgradecluster. There's a
>>> description
>>> of it at
>>> http://manpages.ubuntu.com/manpages/hardy/man8/pg_upgradecluster.8.html
>>> . I
>>> believe the only time you'll need this is if you change the major or
>>> minor
>>> version - for 8.3.5 to 8.3.6, for example, I believe there's no upgrade
>>> required.
>>
>
> This sounds promising.  However, how do I start the cluster?  Here's what
> I did.  Remember that trying to start 8.2 doesn't do anything.
>
> $ /etc/init.d/postgresql-8.2 start
> $ pg_upgradecluster 8.2 main
> Error: specified cluster is not running
> $ ls /etc/postgresql/8.2
> main
> $
>
> Am I doing something wrong here?
>
> Bryan
>

After thinking about this a little more, I realize that the problem for me
is not that the upgrade didn't go well.  It's that I can't access my data
on 8.2.  If upgrading the cluster allows me to access the data, great.  If
I can access the data on 8,2, that'd be great, too, and then I can worry
about upgrading.  It looks to me like the data is still there:

$ du -shc /var/lib/postgresql/8.2/*
308M        /var/lib/postgresql/8.2/main
308M        total
$ du -shc /var/lib/postgresql/8.3/*
30M        /var/lib/postgresql/8.3/main
30M        total
$

How can I see it?  Why won't 8.2 start?  Note that I get no message at the
prompt when trying to start 8.2.

Bryan

--

-- 
Sent via pgsql-admin mailing list (pgsql-admin <at> postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin


Gmane