Re: [GENERAL] Relational Algebra and Aggregate Functions

2009-07-29 Thread Peter Eisentraut
On Tuesday 28 July 2009 04:38:03 Jeff Davis wrote: > On Mon, 2009-07-27 at 21:05 -0400, Robert James wrote: > > 1) Introduction to Database Systems > > http://www.amazon.com/Introduction-Database-Systems-Kannan-Swamynathan/dp > >/B001BVYKY4/ref=sr_1_5?ie=UTF8&s=books&qid=1248742811&sr=1-5 > > > > a

Re: [GENERAL] Building from source vs RPMs

2009-07-29 Thread Peter Eisentraut
On Tuesday 28 July 2009 02:53:19 Christophe Pettus wrote: > I'm moving from a long time in BSD-land to using Linux. I've always > been in the habit of building PostgreSQL from the source tarballs. On > Linux, is there an advantage either way to using the RPMs as opposed > to building from source?

Re: [GENERAL] Clients disconnect but query still runs

2009-07-29 Thread Albe Laurenz
Robert James wrote: > Is there no way to have the OS interrupt the postgres process > when a TCP/IP disconnect happens? Or is the OS also in the > dark that the TCP/IP connection was dropped? I believe that > there is a way to monitor this using TCP/IP keep alives. > Or perhaps Postgres could ch

Re: [GENERAL] Video available for PGDay SJC '09

2009-07-29 Thread Andreas Wenk
David Fetter schrieb: Just a quick question. Wouldn't it be better to provide the videos in flv format in a player in this page. Since I have a MAC, I have no problems viewing the videos. But with my Linux box and FF 3.5 I can't. You can use xine on your Linux box :) Cheers, David. David, t

Re: [GENERAL] Clients disconnect but query still runs

2009-07-29 Thread Craig Ringer
Robert James wrote: I see - thanks, Tom, for the informative explanation. In my experience admining high volume servers, I found this to a major failure pattern: Client tries query which seems to go on forever (either do to contention or resource exhaustion or some other problem), client gives

Re: [GENERAL] Idle processes chewing up CPU?

2009-07-29 Thread Craig Ringer
Brendan Hill wrote: Hi Tom, Given it's on Windows, any suggestion for how I would get hold of this? (Process Monitor tool perhaps?) I think you can get stack traces from Process Monitor using "Tools -> Stack Summary". I find it a bit hard to interpret this data, though, and I'm not sure how

Re: [GENERAL] Idle processes chewing up CPU?

2009-07-29 Thread Craig Ringer
Craig Ringer wrote: Brendan Hill wrote: Hi Tom, Given it's on Windows, any suggestion for how I would get hold of this? (Process Monitor tool perhaps?) I think you can get stack traces from Process Monitor using "Tools -> Stack Summary". I find it a bit hard to interpret this data, though, a

Re: [GENERAL] Idle processes chewing up CPU?

2009-07-29 Thread Magnus Hagander
On Wed, Jul 29, 2009 at 12:08, Craig Ringer wrote: > Craig Ringer wrote: >> >> Brendan Hill wrote: >>> >>> Hi Tom, >>> >>> Given it's on Windows, any suggestion for how I would get hold of this? >>> (Process Monitor tool perhaps?) >> >> I think you can get stack traces from Process Monitor using "T

[GENERAL] Reporting problems wiki article - help requested

2009-07-29 Thread Craig Ringer
Hi I've started on a wiki article on reporting problems / bugs with PostgreSQL. It focuses mainly on collecting enough information for it to be possible to answer questions reasonably. I'd really like edits / comments / suggestions. http://wiki.postgresql.org/wiki/Guide_to_reporting_problems

Re: [GENERAL] Reporting problems wiki article - help requested

2009-07-29 Thread A. Kretschmer
In response to Craig Ringer : > Hi > > I've started on a wiki article on reporting problems / bugs with > PostgreSQL. It focuses mainly on collecting enough information for it to > be possible to answer questions reasonably. > > I'd really like edits / comments / suggestions. the error-message

[GENERAL] Query optimisation and sorting on external merge

2009-07-29 Thread Jake Stride
Hi, I'm trying to optimise a query at the moment, I've added some new indexes to stop seq scans, but I'm now trying to work out if I can stop a join using external sort to speed up the query. I've included an explain analyze below and would appreciate any pointers to gaps in my understanding. exp

Re: [GENERAL] Query optimisation and sorting on external merge

2009-07-29 Thread A. Kretschmer
In response to Jake Stride : > Hi, > > I'm trying to optimise a query at the moment, I've added some new > indexes to stop seq scans, but I'm now trying to work out if I can > stop a join using external sort to speed up the query. I've included Increase work_mem to force sort in memory. Andreas

Re: [GENERAL] Query optimisation and sorting on external merge

2009-07-29 Thread nha
Hello, Le 29/07/09 13:46, Jake Stride a écrit : > Hi, > > I'm trying to optimise a query at the moment, I've added some new > indexes to stop seq scans, but I'm now trying to work out if I can > stop a join using external sort to speed up the query. I've included > an explain analyze below and wo

Re: [GENERAL] Query optimisation and sorting on external merge

2009-07-29 Thread Jake Stride
2009/7/29 A. Kretschmer : > In response to Jake Stride : >> Hi, >> >> I'm trying to optimise a query at the moment, I've added some new >> indexes to stop seq scans, but I'm now trying to work out if I can >> stop a join using external sort to speed up the query. I've included > > Increase work_mem

[GENERAL] org.postgresql.util.PSQLException: PANIC: could not write to log file 6

2009-07-29 Thread mzhang
Hello, In our customer site, the following error occurred. I tried to find some indication what this means. Is this log file used for the roll back purpose? In what scenario that one gets such fatal error? Please help!!! Mzhang Caused by: org.jboss.resource.JBossResourceException: SQLExcepti

Re: [GENERAL] Building from source vs RPMs

2009-07-29 Thread Scott Mead
On Wed, Jul 29, 2009 at 3:27 AM, Peter Eisentraut wrote: > On Tuesday 28 July 2009 02:53:19 Christophe Pettus wrote: > > I'm moving from a long time in BSD-land to using Linux. I've always > > been in the habit of building PostgreSQL from the source tarballs. On > > Linux, is there an advantage

Re: [GENERAL] Clients disconnect but query still runs

2009-07-29 Thread Jasen Betts
On 2009-07-28, Tom Lane wrote: > Robert James writes: >> Hi. I noticed that when clients (both psql and pgAdmin) disconnect or >> cancel, queries are often still running on the server. A few questions: >> 1) Is there a way to reconnect and get the results? > > No. > >> 2) Is there a way to tell

Re: [GENERAL] combining db's- importing primary keys

2009-07-29 Thread Jasen Betts
On 2009-07-27, Bob Gobeille wrote: > I would like to combine multiple databases (same schema) into one > master db. Does anyone know how I can reconcile all my primary and > foreign keys to maintain referential integrity. prefix them all with something that's unique to their source database

[GENERAL] org.postgresql.util.PSQLException: PANIC: could not write to log file

2009-07-29 Thread mzhang
In our customer site, the following error occurred. I tried to find some indication what this means. Is this log file used for the roll back purpose? In what scenario that one gets such fatal error? Please help!!! Mzhang Caused by: org.jboss.resource.JBossResourceException: SQLException; - n

Re: [GENERAL] comparing NEW and OLD (any good this way?)

2009-07-29 Thread Jasen Betts
On 2009-07-23, Sam Mason wrote: > On Thu, Jul 23, 2009 at 01:45:36PM +0200, Pavel Stehule wrote: >> http://www.postgres.cz/index.php/PostgreSQL_SQL_Tricks > > Just had a quick flick through your list and one of the early ones stuck > out: > > > http://www.postgres.cz/index.php/PostgreSQL_SQL_Tr

Re: [GENERAL] Content-Type in form variables

2009-07-29 Thread Jasen Betts
On 2009-07-25, Dennis Gearon wrote: > If I receive a form via POST or PUT with with mulitple variables, files, > application/json, others, is there anywhere in the environment to test he > mime type of each variable? > POST /en/html/dummy.php HTTP/1.1 looks like a PHP question to me http://nz2

Re: [GENERAL] org.postgresql.util.PSQLException: PANIC: could not write to log file

2009-07-29 Thread Ray Stell
On Wed, Jul 29, 2009 at 09:05:37AM -0400, mzh...@ilww.com wrote: > Caused by: org.postgresql.util.PSQLException: PANIC: could not write to > log file 6, segment 176 at offset 14991360, length 8192: Read-only file > system You need the sysadmin to examine the OS status. It's possible the system

Re: [GENERAL] comparing NEW and OLD (any good this way?)

2009-07-29 Thread Sam Mason
On Wed, Jul 29, 2009 at 01:15:27PM +, Jasen Betts wrote: > On 2009-07-23, Sam Mason wrote: > > > > http://www.postgres.cz/index.php/PostgreSQL_SQL_Tricks#Attention_on_IS_NULL_and_IS_NOT_NULL_operators_for_composite_types > > > > is scary; even worse is that it was changed to be like this in

Re: [GENERAL] Clients disconnect but query still runs

2009-07-29 Thread Greg Stark
On Wed, Jul 29, 2009 at 1:58 PM, Jasen Betts wrote: > can't coerce a signal from the network stack? the linux socket(2) > manpage is full of promise (SIGPIPE, SIGURG, SIGIO) [please don't quote the entire message back, just the part you're responding to] Well SIGPIPE is no help since it would onl

Re: [GENERAL] Clients disconnect but query still runs

2009-07-29 Thread Sam Mason
On Mon, Jul 27, 2009 at 09:49:04PM -0400, Tom Lane wrote: > It does not spend cycles looking aside to see if the > connection has dropped when it is doing something that doesn't involve > output to the client. Is this ever an interesting case? It would seem possible for something to test the clie

Re: [GENERAL] Clients disconnect but query still runs

2009-07-29 Thread Tom Lane
Greg Stark writes: > On Wed, Jul 29, 2009 at 1:58 PM, Jasen Betts wrote: >> can't coerce a signal from the network stack? the linux socket(2) >> manpage is full of promise (SIGPIPE, SIGURG, SIGIO) > SIGIO on the other hand looks like exactly what we would need. I'm not > sure if it can be set to

[GENERAL] Problems compiling contribs in Open Solaris

2009-07-29 Thread Emanuel Calvo Franco
HI all, I trying to compile several contribs in Osol. I had in result some problems to take them work. /opt/SUNWspro/bin/cc -Xa -xO3 -xarch=native -xspace -W0,-Lt -W2,-Rcond_elim -Xa -xildoff -xc99=none -xCC -KPIC -I. -I../../src/include -c -o xpath.o xpath.c Putting child 0x080a3290 (xpath.o)

Re: [GENERAL] combining db's- importing primary keys

2009-07-29 Thread Bob Gobeille
On Jul 29, 2009, at 7:02 AM, Jasen Betts wrote: On 2009-07-27, Bob Gobeille wrote: I would like to combine multiple databases (same schema) into one master db. Does anyone know how I can reconcile all my primary and foreign keys to maintain referential integrity. prefix them all with some

Re: [GENERAL] combining db's- importing primary keys

2009-07-29 Thread nha
Hello, Le 29/07/09 15:02, Jasen Betts a écrit : > On 2009-07-27, Bob Gobeille wrote: >> I would like to combine multiple databases (same schema) into one >> master db. Does anyone know how I can reconcile all my primary and >> foreign keys to maintain referential integrity. > > prefix them

[GENERAL] How to prevent duplicate key error when two processes do DELETE/INSERT simultaneously?

2009-07-29 Thread Brodie Thiesfield
Hi, I've got a problem with a PG client that I'm not sure how to fix. Essentially, I have two processes connecting to a single PG database and simultaneously issuing the following statements: BEGIN; SET TRANSACTION ISOLATION LEVEL SERIALIZABLE; DELETE FROM licence_properties WHERE key = xxx; INS

Re: [GENERAL] combining db's- importing primary keys

2009-07-29 Thread Bob Gobeille
On Jul 29, 2009, at 8:26 AM, nha wrote: Hello, Le 29/07/09 15:02, Jasen Betts a écrit : On 2009-07-27, Bob Gobeille wrote: I would like to combine multiple databases (same schema) into one master db. Does anyone know how I can reconcile all my primary and foreign keys to maintain referent

[GENERAL] integration of fulltext search in bytea/docs

2009-07-29 Thread Radek Novotný
Hello, is there in the roadmap of postgre integration of fulltext searching in documents saved in blobs (bytea)? For example linux antiword can export fine text output that can be inserted into varchar field. Would be very very nice (postgre users can be proud to be first) to save documents i

[GENERAL] OID in $_TD->{new}/$_TD->{old}

2009-07-29 Thread Antonio José García Lagar
It is posible to access to the row OID of the row which fired a pl/perl trigger? If I try to access to $_TD->{new}{oid} or $_TD->{old}{oid} I have no result. Thanks in advance! -- Antonio José García Lagar Compact Software International SA http://www.c17.net -- Sent via pgsql-general mailing

Re: [GENERAL] Monitoring tools for Postgresql

2009-07-29 Thread mukeshp
I am running postgresql server on RHEL 5 system. Greg Smith-12 wrote: > > On Tue, 28 Jul 2009, mukeshp wrote: > >> Can anyone suggest me tools for monitoring postgresql server. ? > > An idea what operating system you're running the server on would help > here. > > -- > * Greg Smith gsm...@g

Re: [GENERAL] How to prevent duplicate key error when two processes do DELETE/INSERT simultaneously?

2009-07-29 Thread Tom Lane
Brodie Thiesfield writes: > Essentially, I have two processes connecting to a single PG database > and simultaneously issuing the following statements: > BEGIN; > SET TRANSACTION ISOLATION LEVEL SERIALIZABLE; > DELETE FROM licence_properties WHERE key = xxx; > INSERT INTO licence_properties ... v

Re: [GENERAL] integration of fulltext search in bytea/docs

2009-07-29 Thread Sam Mason
On Wed, Jul 29, 2009 at 04:46:43PM +0200, Radek Novotnnn wrote: > is there in the roadmap of postgre integration of fulltext searching in > documents saved in blobs (bytea)? Do you mean bytea or large-objects? > Would be very very nice (postgre users can be proud to be first) to save > document

Re: [GENERAL] OID in $_TD->{new}/$_TD->{old}

2009-07-29 Thread Tom Lane
Antonio =?ISO-8859-1?Q?Jos=E9_Garc=EDa?= Lagar writes: > It is posible to access to the row OID of the row which fired a pl/perl > trigger? > If I try to access to $_TD->{new}{oid} or $_TD->{old}{oid} I have no > result. It looks to me like plperl_hash_from_tuple considers only user attributes.

Re: [GENERAL] integration of fulltext search in bytea/docs

2009-07-29 Thread Pavel Stehule
Hello Dne 29. červenec 2009 16:46 Radek Novotný napsal(a): > Hello, > is there in the roadmap of postgre integration of fulltext searching in > documents saved in blobs (bytea)? > What I know, no. PostgreSQL doesn't know about others binary formats, so it cannot do it. > For example linux antiw

[GENERAL] How do I run PG Tuning Wizard on Linux?

2009-07-29 Thread Jennifer Trey
I have been using Windows before and that was just an installer. How can I install and run something similar on Ubuntu ? Thanks / Jen

Re: [GENERAL] Relational Algebra and Aggregate Functions

2009-07-29 Thread Jeff Davis
On Wed, 2009-07-29 at 10:19 +0300, Peter Eisentraut wrote: > Is it weird that "Database in Depth" is shorter and easier than "Introduction > to Database Systems"? And they're by the same author, too. I agree that it's a little strange. The former is more conceptual and starts off assuming that y

Re: [GENERAL] combining db's- importing primary keys

2009-07-29 Thread nha
Hello, Le 29/07/09 16:44, Bob Gobeille a écrit : > > On Jul 29, 2009, at 8:26 AM, nha wrote: > >> Hello, >> >> Le 29/07/09 15:02, Jasen Betts a écrit : >>> On 2009-07-27, Bob Gobeille wrote: I would like to combine multiple databases (same schema) into one master db. Does anyone kno

Re: [GENERAL] Clients disconnect but query still runs

2009-07-29 Thread Greg Stark
On Wed, Jul 29, 2009 at 3:17 PM, Tom Lane wrote: > Greg Stark writes: >> On Wed, Jul 29, 2009 at 1:58 PM, Jasen Betts wrote: >>> can't coerce a signal from the network stack? the linux socket(2) >>> manpage is full of promise (SIGPIPE, SIGURG, SIGIO) > > > And the other question is how much of wha

Re: [GENERAL] How do I run PG Tuning Wizard on Linux?

2009-07-29 Thread Jennifer Trey
Is this it? http://pgfoundry.org/projects/pgtune I thought it was EnterpriseDB. Perhaps that's only for windows? Thanks / Jen

Re: [GENERAL] Clients disconnect but query still runs

2009-07-29 Thread Tom Lane
Greg Stark writes: > That is a question. But actually I think sigio might be fairly > portable -- at least the first hit I found was for someone complaining > that it wasn't working on Linux (due to a bug) and this broke their > app which worked everywhere else. > In any case this would be a feat

Re: [GENERAL] comparing NEW and OLD (any good this way?)

2009-07-29 Thread Merlin Moncure
On Wed, Jul 29, 2009 at 9:40 AM, Sam Mason wrote: > On Wed, Jul 29, 2009 at 01:15:27PM +, Jasen Betts wrote: >> On 2009-07-23, Sam Mason wrote: >> >   >> > http://www.postgres.cz/index.php/PostgreSQL_SQL_Tricks#Attention_on_IS_NULL_and_IS_NOT_NULL_operators_for_composite_types >> > >> > is sc

Re: [GENERAL] How do I run PG Tuning Wizard on Linux?

2009-07-29 Thread Sachin Srivastava
On 07/29/2009 09:46 PM, Jennifer Trey wrote: Is this it? http://pgfoundry.org/projects/pgtune I thought it was EnterpriseDB. Perhaps that's only for windows? Thanks / Jen You can have TuningWizard (EnterpriseDB's) for linux also available through StackBuilder. -- Regards, Sachin Srivastava

[GENERAL] Strange Planner Issues

2009-07-29 Thread Jake Stride
Hi, I have 2 databases running on the same server. One is a dump of the other, however the query plans for the same query on the same tables in each database is wildly different and I cannot work out why. The first result below is for the dump of the database and executes in a reasonable time. Th

Re: [GENERAL] Query optimisation and sorting on external merge

2009-07-29 Thread Jake Stride
Thanks I'll take a look into it - they query you provide seems to take longer in the query plan but I can see where you are coming from and it's good base to work from. Jake -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.pos

Re: [GENERAL] Strange Planner Issues

2009-07-29 Thread Greg Stark
On Wed, Jul 29, 2009 at 8:01 PM, Jake Stride wrote: > Hi, > > I have 2 databases running on the same server. One is a dump of the > other, however the query plans for the same query on the same tables > in each database is wildly different and I cannot work out why. >                            

Re: [GENERAL] OID in $_TD->{new}/$_TD->{old}

2009-07-29 Thread Antonio José García Lagar
> > It is posible to access to the row OID of the row which fired a pl/perl > > trigger? > > > If I try to access to $_TD->{new}{oid} or $_TD->{old}{oid} I have no > > result. > > It looks to me like plperl_hash_from_tuple considers only user > attributes. Not sure if this would be worth changin

[GENERAL] Monitoring with pg_controldata

2009-07-29 Thread Tim Uckun
I am trying to monitor my replication lag with pg_controldata and it's driving me nuts. If I run pg_controldata from the command line as user postgres or root I get the following line Time of latest checkpoint:Thu 30 Jul 2009 00:36:12 NZST If I run it from the crontab I get this out

Re: [GENERAL] Monitoring with pg_controldata

2009-07-29 Thread Uwe C. Schroeder
On Wednesday 29 July 2009, Tim Uckun wrote: > > What is the issue here? Some sort of a timezone problem? How do I tell > it what time zone to use? > > Thanks. cron runs programs in a very limited environment. Things like TZ etc. are usually not set. To see what your cron sets, just run a shell

Re: [GENERAL] combining db's- importing primary keys

2009-07-29 Thread Chris
Bob Gobeille wrote: On Jul 29, 2009, at 8:26 AM, nha wrote: Hello, Le 29/07/09 15:02, Jasen Betts a écrit : On 2009-07-27, Bob Gobeille wrote: I would like to combine multiple databases (same schema) into one master db. Does anyone know how I can reconcile all my primary and foreign keys

Re: [GENERAL] combining db's- importing primary keys

2009-07-29 Thread Chris
Chris wrote: Bob Gobeille wrote: On Jul 29, 2009, at 8:26 AM, nha wrote: Hello, Le 29/07/09 15:02, Jasen Betts a écrit : On 2009-07-27, Bob Gobeille wrote: I would like to combine multiple databases (same schema) into one master db. Does anyone know how I can reconcile all my primary an

[GENERAL] V8.3 fails to start after unremming hba_file = 'ConfigDir/pg_hba.conf'

2009-07-29 Thread Alan Deane
Hi All, I was wondering if anyone has had this problem and knows an answer. This is the first time I have used postgres so I am at a loss after trying many things as to how to solve the problem. I've unremmed the line hba_file = 'ConfigDir/pg_hba.conf' in the postgresql.conf file as I want to

Re: [GENERAL] V8.3 fails to start after unremming hba_file = 'ConfigDir/pg_hba.conf'

2009-07-29 Thread Chris
Alan Deane wrote: Hi All, I was wondering if anyone has had this problem and knows an answer. This is the first time I have used postgres so I am at a loss after trying many things as to how to solve the problem. I've unremmed the line hba_file = 'ConfigDir/pg_hba.conf' in the postgresql

Re: [GENERAL] V8.3 fails to start after unremming hba_file = 'ConfigDir/pg_hba.conf'

2009-07-29 Thread Alan Deane
Hi Chris, Thanks for your reply. Maybe I should have reworded it slightly better or fuller. I assumed that having ConfigDir/pg_hba.conf line in postgresql.conf would look for the hba file in the directory relative to where postgres is installed. I.e. the data directory and given that the service

Re: [GENERAL] V8.3 fails to start after unremming hba_file = 'ConfigDir/pg_hba.conf'

2009-07-29 Thread Chris
Alan Deane wrote: Hi Chris, Thanks for your reply. Maybe I should have reworded it slightly better or fuller. I assumed that having ConfigDir/pg_hba.conf line in postgresql.conf would look for the hba file in the directory relative to where postgres is installed. I.e. the data directory and giv

Re: [GENERAL] V8.3 fails to start after unremming hba_file = 'ConfigDir/pg_hba.conf'

2009-07-29 Thread Scott Mead
Re-REM (called commenting for us non-windows geeks :-) the line Look in your data directory, the file exists and is used automatically, you don't need to point the postgresql.conf file to it explicitly. Look at: http://www.postgresql.org/docs/8.3/interactive/client-authentication.html For deta

Re: [GENERAL] V8.3 fails to start after unremming hba_file = 'ConfigDir/pg_hba.conf'

2009-07-29 Thread Alan Deane
Ah, OK. So what you are saying is that I don't need the 'ConfigDir/pg_hba.conf' in postgresql.conf . I guess that makes sense as well because you would only need that if it wasn't located in the data directory. Although having said that, I think I uncommented it because I was having troub

Re: [GENERAL] V8.3 fails to start after unremming hba_file = 'ConfigDir/pg_hba.conf'

2009-07-29 Thread Alan Deane
Sorry, yes the error, Doh!. Standard Server doesn't Listen (sounds like my ex :)) Here it is in full. Server doesn't listen could not connect to server; Connection timed out (0x274C/10060) Is the server running on host 192.168.2.99 and accepting TCP/IP connection on port 5432? As you say,

Re: [GENERAL] V8.3 fails to start after unremming hba_file = 'ConfigDir/pg_hba.conf'

2009-07-29 Thread Chris
Alan Deane wrote: Sorry, yes the error, Doh!. Standard Server doesn't Listen (sounds like my ex :)) Here it is in full. Server doesn't listen could not connect to server; Connection timed out (0x274C/10060) Is the server running on host 192.168.2.99 and accepting TCP/IP connection on port

Re: [GENERAL] V8.3 fails to start after unremming hba_file = 'ConfigDir/pg_hba.conf'

2009-07-29 Thread Scott Mead
On Wed, Jul 29, 2009 at 9:14 PM, Alan Deane wrote: > Sorry, yes the error, Doh!. > > Standard Server doesn't Listen (sounds like my ex :)) > > Here it is in full. > > Server doesn't listen > > could not connect to server; Connection timed out (0x274C/10060) Is the > server running on host 192

Re: [GENERAL] Monitoring with pg_controldata

2009-07-29 Thread Tim Uckun
O > cron runs programs in a very limited environment. Things like TZ etc. are > usually not set. To see what your cron sets, just run a shell script with > something like > > #!/bin/sh > env > > and look at the email you get with the output. > Read the cron/crontab manpage. It tells you how to set

Re: [GENERAL] How to prevent duplicate key error when two processes do DELETE/INSERT simultaneously?

2009-07-29 Thread Brodie Thiesfield
On Thu, Jul 30, 2009 at 12:23 AM, Tom Lane wrote: > Brodie Thiesfield writes: >> Essentially, I have two processes connecting to a single PG database >> and simultaneously issuing the following statements: > >> BEGIN; >> SET TRANSACTION ISOLATION LEVEL SERIALIZABLE; >> DELETE FROM licence_properti

Re: [GENERAL] V8.3 fails to start after unremming hba_file = 'ConfigDir/pg_hba.conf'

2009-07-29 Thread Alan Deane
Hi Chris, I can connect to the server locally with PgAdmin using localhost: 5432 192.168.2.99: 5432 127.0.0.1 : 5432 As for the Windows event logs they are all fine. The server logs. Look OK except for %LOG: invalid length of startup packet which could have been when I was trying to telnet in.

Re: [GENERAL] V8.3 fails to start after unremming hba_file = 'ConfigDir/pg_hba.conf'

2009-07-29 Thread Alan Deane
Hi Scott, Yep, already have that set. Thanks anyway. Alan _ From: pgsql-general-ow...@postgresql.org [mailto:pgsql-general-ow...@postgresql.org] On Behalf Of Scott Mead Sent: 30 July 2009 02:45 To: a...@anitltd.co.uk Cc: Chris; pgsql-general@postgresql.org Subject: Re: [GENER

Re: [GENERAL] V8.3 fails to start after unremming hba_file = 'ConfigDir/pg_hba.conf'

2009-07-29 Thread Alan Deane
Ok, I have just had a look at the firewall network monitor (Open Ports) and the following is showing. 5432TCP POSTGRES.EXE-D "G:/PROGRAM FILES/POSTGRESQL/8.3/DATA" 127.0.0.1 02:11:46 4141UDP POSTGRES.EXE-D "G:/PROGRAM FILES/POSTGRESQL/8.3/DATA" 127.0.0.1 02:12:5

Re: [GENERAL] Problems compiling contribs in Open Solaris

2009-07-29 Thread Alvaro Herrera
Emanuel Calvo Franco escribió: > HI all, > > I trying to compile several contribs in Osol. I had in result some > problems to take them work. > > /opt/SUNWspro/bin/cc -Xa -xO3 -xarch=native -xspace -W0,-Lt > -W2,-Rcond_elim -Xa -xildoff -xc99=none -xCC -KPIC -I. > -I../../src/include -c -o xpat

Re: [GENERAL] V8.3 fails to start after unremming hba_file = 'ConfigDir/pg_hba.conf'

2009-07-29 Thread Alan Deane
I have now isolated the problem to the firewall as suspected. I found that when I disabled Kaspersky firewall the bloody Windows firewall would kick in unbeknown to me. Once that was disabled as well then I could connect from another machine on the LAN. So the next step is easy, configure Kasper

Re: [GENERAL] V8.3 fails to start after unremming hba_file = 'ConfigDir/pg_hba.conf'

2009-07-29 Thread Scott Mead
On Wed, Jul 29, 2009 at 9:14 PM, Alan Deane wrote: > Sorry, yes the error, Doh!. > > Standard Server doesn't Listen (sounds like my ex :)) > > Here it is in full. > > Server doesn't listen > > could not connect to server; Connection timed out (0x274C/10060) Is the > server running on host 192

[GENERAL] Blog post about Amazon Elastic Block Storage

2009-07-29 Thread John Cheng
I know quite a number of people here, like myself, are intrigued by the prospect of running PostgreSQL on Amazon's EC. I thought this blog post on the performance of EBS was interesting, so I figure I'd share it with everybody. http://orion.heroku.com/past/2009/7/29/io_performance_on_ebs/ ---

Re: [GENERAL] Blog post about Amazon Elastic Block Storage

2009-07-29 Thread Tom Lane
John Cheng writes: > I know quite a number of people here, like myself, are intrigued by the > prospect of running PostgreSQL on Amazon's EC. I thought this blog post on > the performance of EBS was interesting, so I figure I'd share it with > everybody. > http://orion.heroku.com/past/2009/7/2

Re: [GENERAL] How to prevent duplicate key error when two processes do DELETE/INSERT simultaneously?

2009-07-29 Thread Alex Hunsaker
On Wed, Jul 29, 2009 at 19:53, Brodie Thiesfield wrote: > On further investigation, since the logic requires the delete to be > made first to get rid of other possible rows, so I'll go with: > > DELETE > (if supported)  INSERT OR REPLACE > (otherwise)             INSERT, if duplicate key, UPDATE >

[GENERAL] pg_stat_activity undocumented?

2009-07-29 Thread Thomas Kellerer
Hi, is there a reason why pg_stat_activity is not documented in the chapter "System Catalogs"? Is this not a "offical" view? Regards Thomas -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-ge

Re: [GENERAL] Clients disconnect but query still runs

2009-07-29 Thread Craig Ringer
On Wed, 2009-07-29 at 14:56 +0100, Greg Stark wrote: > SIGURG might be useful but it would be more complex to use and less > widely useful since it would only work if the client disconnects > gracefully (though it might be worth checking into as an alternative > to our existing query cancel method