[GENERAL] New feature: selectivity - new attribute in function

2011-04-16 Thread pasman pasmański
Hi. It is sometimes hard to tune complicated queries. Maybe add new attribute to functions returning boolean - selectivity, defining how big is percent of rows for which the function returns true. 2011/4/15, Edison So : > I have a DELL server running Windows server 2003 and Postgres 8.1. > > I use

Re: [GENERAL] New feature: selectivity - new attribute in function

2011-04-16 Thread Edison So
Thank you for the reply. It has nothing to do with programming. I was trying to back up the 8.1 database (using pg_dump) which had exceeded 2Gig limit according to a response. When I tried to restore it using pg_restore to a 9.0 database, it complained about custom archiver error and corruption an

Re: [GENERAL] New feature: selectivity - new attribute in function

2011-04-16 Thread Alban Hertroys
On 16 Apr 2011, at 22:10, Edison So wrote: > One response told me to try backing up 8.1 database using 9.0 pg_dump and > restore it to 9.0 database using 9.0 pg_restore. You shouldn't try to restore into a newer database version with a dump made with an older pg_dump. Pg_dump isn't (and can't b

Re: [GENERAL] New feature: selectivity - new attribute in function

2011-04-16 Thread Edison So
Hello Alban, Thank you for the suggestion. May I ask you and others another advice as to taking a Postgres course? I am not a DBA and have never taken a database course. However, I am using Postgres for a system I am supporting. Any suggestion? I need to set up a primary-standby or load-balancin

Re: [GENERAL] New feature: selectivity - new attribute in function

2011-04-16 Thread Adrian Klaver
On Saturday, April 16, 2011 1:10:39 pm Edison So wrote: > Thank you for the reply. > > It has nothing to do with programming. I was trying to back up the 8.1 > database (using pg_dump) which had exceeded 2Gig limit according to a > response. When I tried to restore it using pg_restore to a 9.0 dat

Re: [GENERAL] New feature: selectivity - new attribute in function

2011-04-16 Thread Adrian Klaver
On Saturday, April 16, 2011 1:10:39 pm Edison So wrote: > Thank you for the reply. > > It has nothing to do with programming. I was trying to back up the 8.1 > database (using pg_dump) which had exceeded 2Gig limit according to a > response. When I tried to restore it using pg_restore to a 9.0 dat

Re: [GENERAL] New feature: selectivity - new attribute in function

2011-04-16 Thread Edison So
Hello Adrian, Thank you for your reply again. I will try to use your previous suggestion that I will backup 8.1 database using 9.0 pg_dump and restore it to 9.0 database. Hopefully, 9.0 pg_dump will work on 8.1 database. I have never taken a DB course and very very new to Postgres. Thanks again,

Re: [GENERAL] New feature: selectivity - new attribute in function

2011-04-16 Thread Adrian Klaver
On Saturday, April 16, 2011 1:59:48 pm Edison So wrote: > Hello Adrian, > > Thank you for your reply again. > > I will try to use your previous suggestion that I will backup 8.1 database > using 9.0 pg_dump and restore it to 9.0 database. Hopefully, 9.0 pg_dump > will work on 8.1 database. I have

Re: [GENERAL] New feature: selectivity - new attribute in function

2011-04-16 Thread Edison So
Haha. Having a QA background for many years, I do not believe in anything until it is tested. :) Thanks. On Sat, Apr 16, 2011 at 5:02 PM, Adrian Klaver wrote: > On Saturday, April 16, 2011 1:59:48 pm Edison So wrote: > > Hello Adrian, > > > > Thank you for your reply again. > > > > I will try to

Re: [GENERAL] New feature: selectivity - new attribute in function

2011-04-16 Thread Edison So
Oh yeah. Forgot to mention that Postgres 9.0 does not have an option to restore text based back up file. Do you know how? On Sat, Apr 16, 2011 at 5:06 PM, Edison So wrote: > Haha. Having a QA background for many years, I do not believe in anything > until it is tested. :) > > Thanks. > > On S

Re: [GENERAL] New feature: selectivity - new attribute in function

2011-04-16 Thread Adrian Klaver
On Saturday, April 16, 2011 2:06:44 pm Edison So wrote: > Haha. Having a QA background for many years, I do not believe in anything > until it is tested. :) I have done it enough times to know it works. The issue that might arise are not related to the pg_dump program but version changes in beha

Re: [GENERAL] New feature: selectivity - new attribute in function

2011-04-16 Thread Adrian Klaver
On Saturday, April 16, 2011 2:07:48 pm Edison So wrote: > Oh yeah. > > Forgot to mention that Postgres 9.0 does not have an option to restore text > based back up file. Do you know how? > It is the same for all versions. psql (options) -f text_dump.sql -- Adrian Klaver adrian.kla...@gmail.co

Re: [GENERAL] New feature: selectivity - new attribute in function

2011-04-16 Thread Raymond O'Donnell
On 16/04/2011 22:07, Edison So wrote: Oh yeah. Forgot to mention that Postgres 9.0 does not have an option to restore text based back up file. Do you know how? Surely: psql -f Ray. -- Raymond O'Donnell :: Galway :: Ireland r...@iol.ie -- Sent via pgsql-general mailing list (pgsql-genera

Re: [GENERAL] New feature: selectivity - new attribute in function

2011-04-16 Thread Adrian Klaver
On Saturday, April 16, 2011 2:07:48 pm Edison So wrote: > Oh yeah. > > Forgot to mention that Postgres 9.0 does not have an option to restore text > based back up file. Do you know how? > Just realized, if you are using the 9.0 version of pg_dump you can do a binary(- Fc) dump against the 8.1 se

[GENERAL] poker tracker 3

2011-04-16 Thread Sébastien Beaulieu
Hello gang, I'm using pokertracker3. I want to buy a new computer and my priority is that it runs as fast as possible. I have a question about SSD. If i buy a 300 Go SSD, will it gains performance compared to a 1rpm velociraptor??? And is the durability of the SSD will be ok since I know

[GENERAL] Are Update rights on the target table of a do instead update rule necessary ?

2011-04-16 Thread Geraldo Lopes de Souza
Hi, I'm trying to implement tenant view filter with postgres. The docs says "Rewrite rules don't have a separate owner. The owner of a relation (table or view) is automatically the owner of the rewrite rules that are defined for it. The PostgreSQL rule system changes the behavior of the default a

Re: [GENERAL] New feature: selectivity - new attribute in function

2011-04-16 Thread Edison So
I did that with Postgres 8.1 backup file on 9.0 database. I got continuous error messages like "Can not execute the command...". Well, I do not need worry about it for I am going to back up 8.1 database using 9.0 pg_dump command. Let's see how it goes. Thanks, On Sat, Apr 16, 2011 at 5:17 PM, Ra

Re: [GENERAL] New feature: selectivity - new attribute in function

2011-04-16 Thread Adrian Klaver
On Saturday, April 16, 2011 4:05:52 pm Edison So wrote: > I did that with Postgres 8.1 backup file on 9.0 database. I got continuous > error messages like "Can not execute the command...". Well, I do not need > worry about it for I am going to back up 8.1 database using 9.0 pg_dump > command. > >

Re: [GENERAL] New feature: selectivity - new attribute in function

2011-04-16 Thread Edison So
Yes, I was. The backup successfully created the schema followed by continuous error messages. It would be nice to have informative error message. Thanks, On Sat, Apr 16, 2011 at 7:10 PM, Adrian Klaver wrote: > On Saturday, April 16, 2011 4:05:52 pm Edison So wrote: > > I did that with Postgres

Re: [GENERAL] New feature: selectivity - new attribute in function

2011-04-16 Thread Adrian Klaver
On Saturday, April 16, 2011 4:24:38 pm Edison So wrote: > Yes, I was. > > The backup successfully created the schema followed by continuous error > messages. It would be nice to have informative error message. What exactly where the error messages? Also the degree of verbosity and level of deta

Re: [GENERAL] poker tracker 3

2011-04-16 Thread John R Pierce
On 04/16/11 10:46 AM, Sébastien Beaulieu wrote: Hello gang, I'm using pokertracker3. I want to buy a new computer and my priority is that it runs as fast as possible. I have a question about SSD. If i buy a 300 Go SSD, will it gains performance compared to a 1rpm velociraptor??? And is th

Re: [GENERAL] New feature: selectivity - new attribute in function

2011-04-16 Thread Edison So
I used the option "-v" with the pg_restore command in the 9.0 database machine. If you want the exact error message, I will have to give it to you on Monday. Thanks, On Sat, Apr 16, 2011 at 8:17 PM, Adrian Klaver wrote: > On Saturday, April 16, 2011 4:24:38 pm Edison So wrote: > > Yes, I was. >

[GENERAL] postgresql tablefunc library error

2011-04-16 Thread Madan Thapa
Hi, We installed postgresql contrib package to make use of tablefunc library However when we try to use it, it gives following error: [pgadmins@dbserver ~]$ psql -U postgres someDBname psql (9.1alpha1) Type "help" for help. halflines=# \i /usr/pgsql-9.1/share/contrib/tablefunc.sql SET psql