Re: [GENERAL] power failure....

2007-12-02 Thread Greg Smith
On Sat, 1 Dec 2007, Joshua D. Drake wrote: change wal_sync_method to open_sync and fsync=on isn't nearly as bad as it sounds. Just be warned that there's been one report that some Linux versions have bugs that make open_sync problematic:

Re: [GENERAL] Cluster using tablespaces?

2007-12-02 Thread Alvaro Herrera
Rainer Bauer wrote: Alvaro Herrera wrote: It has been theorized that cluster would be faster in general if instead of doing an indexscan we would instead use a seqscan + sort step. It would be good to measure it. Could a reindex on the clustered index speed up the clustering (when

[GENERAL] relation deleted while in use encountered with Postgresql 8.0.8

2007-12-02 Thread Gautam Sampathkumar
Hi, I'm using a python script w/ the PyGreSQL library to insert 1 billion rows into a database table for an experiment (performing a commit every 10K rows). My script failed at about 170M rows with the following exception: File /usr/lib64/python2.3/site-packages/pgdb.py, line 163, in execute

Re: [GENERAL] certificate based authorization

2007-12-02 Thread Sebastian - Anton PONOVESCU
Hello I did not thought about this. Anyway I think is quite unusable in my environment. We're talking 50+ server (and in near future 100+ servers) and 500+ users each of which will be granted access to a small number of servers (like 2 or 3). So is very easy to say to one server who is allowed to

Re: [GENERAL] PostgresSQL vs Ingress

2007-12-02 Thread Paul Boddie
On 30 Nov, 16:12, [EMAIL PROTECTED] (Tom Lane) wrote: [Quoting a re-telling of the myth of products living happily ever after under the control of big companies] Anyone who thinks that's a reason to feel good is living on some other planet than I do. Consider that if the company *does*

Re: [GENERAL] Postgres WarmStandby using ZFS or Snapshot to create Web DB?

2007-12-02 Thread Robert Treat
On Thursday 29 November 2007 16:08, Jennifer Spencer wrote: I am looking for suggestions in setting up a large postgres database scenario. We are running a science project with a lot of data expected from the science instrument. If you have time to comment, any advice is most welcome! Here's

Re: [GENERAL] postgresql in ramdisk

2007-12-02 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/02/07 04:43, oruc çimen wrote: hi; i have tested postgresql in memory but in ramdisk is not faster than hardisk. why??? if there are some option for postgresql in ramdisk, pls help me i need too much fast db if you know another way for

Re: [GENERAL] One or more tables?

2007-12-02 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/02/07 07:35, rokj wrote: Hi. For an example let me say that I have a big (over 1 million) user base. Then every user does a lot of inserting/updating of data. Would it be better to create different tables for insert/updating for every

Re: [GENERAL] Simple math statement - problem

2007-12-02 Thread Lew
Postgres User wrote: The problem turned out to be related to my function.. Given this table: CREATE TABLE table2 ( s_val numeric(6,2), e_val numeric(6,2) ) WITH OIDS; I am curious what would happen if you wrote your procedure like this: declare retval numeric(6,2); rec

Re: [GENERAL] Simple math statement - problem

2007-12-02 Thread Lew
Lew wrote: Postgres User wrote: The problem turned out to be related to my function.. Given this table: CREATE TABLE table2 ( s_val numeric(6,2), e_val numeric(6,2) ) WITH OIDS; The following functions of code will set retval = NULL; declare retval numeric(6,2); rec record; begin

[GENERAL] postgresql in ramdisk

2007-12-02 Thread oruc çimen
hi; i have tested postgresql in memory but in ramdisk is not faster than hardisk. why??? if there are some option for postgresql in ramdisk, pls help me i need too much fast db if you know another way for fast db pls send a mail to me thank you (sorry for my bad english:( ) G.Oruc Cimen

[GENERAL] One or more tables?

2007-12-02 Thread rokj
Hi. For an example let me say that I have a big (over 1 million) user base. Then every user does a lot of inserting/updating of data. Would it be better to create different tables for insert/updating for every user or would it be better just to have one big table with all data (tables would have

Re: [GENERAL] log_line_prefix='%t %u %d %h %p %i %l %x ' causes error

2007-12-02 Thread Andrus
That works fine for me... are you sure log_line_prefix is line 482 in your config file? You might have inadvertently put a superfluous % somewhere else. I use the config file below. I have added only some lines to the end of file, all other contents is from windows installer created conf

Re: [GENERAL] Postgres High Availablity Solution needed for hot-standby and load balancing

2007-12-02 Thread Ragnar Heil
Hi Usama yes, currently I am reading a brochure about Continuent uni/cluster for PostgreSQL. Looks quite interesting. Another product sounds promising: Cybercluster from www.postgres.at English Product Description: http://www.postgresql.at/picts/download/dokumentation/documentation_cybe

Re: [GENERAL] Cascading Trigger Prevention

2007-12-02 Thread JonXP
On Nov 29, 5:09 pm, [EMAIL PROTECTED] (Martijn van Oosterhout) wrote: On Wed, Nov 28, 2007 at 02:00:58PM -0800, JonXP wrote: I have a table that contains a nested set (using paths), and I'm trying to create a trigger that updates the timestamps of a node and all of its parents on a

Re: [GENERAL] relation deleted while in use encountered with Postgresql 8.0.8

2007-12-02 Thread Martijn van Oosterhout
On Thu, Nov 29, 2007 at 02:44:25PM -0800, Gautam Sampathkumar wrote: Hi, I'm using a python script w/ the PyGreSQL library to insert 1 billion rows into a database table for an experiment (performing a commit every 10K rows). My script failed at about 170M rows with the following exception:

Re: [GENERAL] [HACKERS] Stored procedure issue

2007-12-02 Thread Usama Dar
On Dec 2, 2007 7:40 AM, Dragan Zubac [EMAIL PROTECTED] wrote: Hello I have a stored procedure which does the billing stuff in our system,it works ok,but if I put in production,where there is some 5-10 billing events per second,the whole database slows down. It won't even drop some test

Re: [GENERAL] One or more tables?

2007-12-02 Thread Usama Dar
On Dec 2, 2007 6:35 PM, rokj [EMAIL PROTECTED] wrote: Hi. For an example let me say that I have a big (over 1 million) user base. Then every user does a lot of inserting/updating of data. Would it be better to create different tables for insert/updating for every user or would it be better

Re: [GENERAL] full_page_writes = off?

2007-12-02 Thread Greg Smith
On Sat, 1 Dec 2007, Tomasz Ostrowski wrote: You can also use hdparm -I to check this - look for a Write caching in Commands/features section. If it has a * in front then it is enabled and dangerous. Right; using -I works with most Linux hdparm versions: # hdparm -V hdparm v6.6 # hdparm -I

Re: [GENERAL] Cluster using tablespaces?

2007-12-02 Thread Rainer Bauer
Alvaro Herrera wrote: Alvaro Herrera wrote: Probably most of the time is going into creating the new table then. If you are looking for a short-term solution to your problem, maybe the best is to follow the recommendation on CLUSTER ref page: I've read that section before, but I have lots of

Re: [GENERAL] log_line_prefix='%t %u %d %h %p %i %l %x ' causes error

2007-12-02 Thread Adrian Klaver
On Friday 30 November 2007 2:31 am, Andrus wrote: That works fine for me... are you sure log_line_prefix is line 482 in your config file? You might have inadvertently put a superfluous % somewhere else. I use the config file below. I have added only some lines to the end of file, all

Re: [GENERAL] Linux v.s. Mac OS-X Performance

2007-12-02 Thread Greg Smith
On Fri, 30 Nov 2007, Wolfgang Keller wrote: it was impossible for me to find a similarly priced (Linux-/*BSD/Intel/AMD-)equivalent to my PowerMac G5 over here at the time when I bought it. The problem from my perspective is the common complaint that Apple doesn't ship an inexpensive desktop

Re: [GENERAL] relation deleted while in use encountered with Postgresql 8.0.8

2007-12-02 Thread Adrian Klaver
On Thursday 29 November 2007 2:44 pm, Gautam Sampathkumar wrote: Hi, I'm using a python script w/ the PyGreSQL library to insert 1 billion rows into a database table for an experiment (performing a commit every 10K rows). My script failed at about 170M rows with the following exception:

Re: [GENERAL] log_line_prefix='%t %u %d %h %p %i %l %x ' causes error

2007-12-02 Thread Tom Lane
Andrus [EMAIL PROTECTED] writes: I use the config file below. I have added only some lines to the end of file, all other contents is from windows installer created conf file. If I remove # sign in front of last line (line 482), and reload configuration, I got syntax error in log file. Is

Re: [GENERAL] [HACKERS] Stored procedure issue

2007-12-02 Thread Dragan Zubac
Hello Please find in attachment stored procedure (proc_uni.txt),as well as description of tables involved in calculations. The idea for procedure is to find longest prefix match for destination number,try to find it in table 'billing' for particular users,find the price,and insert message into

Re: [GENERAL] One or more tables?

2007-12-02 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/02/07 14:58, Usama Dar wrote: On Dec 2, 2007 6:35 PM, rokj [EMAIL PROTECTED] wrote: Hi. For an example let me say that I have a big (over 1 million) user base. Then every user does a lot of inserting/updating of data. Would it be better

Re: [GENERAL] PostgresSQL vs Ingress

2007-12-02 Thread Harvey, Allan AC
Ow Mun Henq wrote:- Ingress is also an open source RDBM (and DataWarehouseing) and I'm wondering if anyone here has anything to say about it. They also offer community editions but I've not gone to see how much it differs/offers compared to PG. I've tried to DL the community edition, but

Re: [GENERAL] Recommendations for a datasync scenario ?

2007-12-02 Thread Jorge Godoy
Em Friday 30 November 2007 05:02:25 Aarni Ruuhimäki escreveu: I followed the recent thread about 'replication in Postgres' but still any info on experience of similar circumstances and pointers / comments / recommendations are more than welcome. You problem is not one where replication would

Re: [GENERAL] [HACKERS] Stored procedure issue

2007-12-02 Thread Dragan Zubac
Hello Here's the stored procedure itself,as well as the related tables involved in it's calculations. The idea for procedure is to find longest prefix match for destination number,try to find it in table 'billing' for particular users,find the price,and insert message into history and inqueue

Re: [GENERAL] HA and Replication - how to choose among all the available solutions

2007-12-02 Thread Andrew Sullivan
On Fri, Nov 30, 2007 at 10:30:47PM +0100, Pascal Cohen wrote: I am facing a probably very common problem. I made a search in the recent archives and could find many posts related to my issue. But I did not get exactly the answer to my question. No, and I doubt you will. But I don't know