Re: [GENERAL] Nested literal parsing rules?

2010-09-23 Thread Tom Lane
Maciek Sakrejda writes: > I seem to be missing something. Does standard_conforming_strings not > apply during COPY? It does not. That setting is about literal strings in SQL commands. The COPY escaping rules do not depend on it. regards, tom lane -- Sent via pgsql-gene

Re: [GENERAL] pg 8.4 crashing.

2010-09-23 Thread Scott Marlowe
On Thu, Sep 23, 2010 at 2:17 PM, Tom Lane wrote: > Scott Marlowe writes: >> I've got a problem with pg 8.4.4 crashing with a sig 6 abort due to a >> panic on failing to add a right sibling in an index.  Log output: > >> PANIC:  failed to add item to the right sibling in index "logged_in_uid" >> S

Re: [GENERAL] Nested literal parsing rules?

2010-09-23 Thread Maciek Sakrejda
Ok, so, stupid question: how does all this interact with COPY escaping rules[1]?: Backslash characters (\) can be used in the COPY data to quote data characters that might otherwise be taken as row or column delimiters. In particular, the following characters must be preceded by a backslash

Re: [GENERAL] [pgsql-sql] Daily digest v1.3328 (5 messages)

2010-09-23 Thread TJ O'Donnell
Yes indeed, pg_query returns "t" or "f" as strings when selecting boolean columns. I was able to switch over to PDO with only an afternoon's work and it works perfectly for boolean columns, returning values that are properly interpreted as true and false by php, and by json_encode. I'm all set now

Re: [GENERAL] Visualize GiST Index

2010-09-23 Thread Andrew Hunter
Hi Tom, Thanks very much for your assistance, your suggestion worked a treat. I have updated the gevel people. Regards Andrew On 2010-09-23, at 2:05 PM, Tom Lane wrote: > Andrew Hunter writes: >> Here is the content of the gevel Makefile > >> subdir = contrib/gevel >> top_builddir = ../..

Re: [GENERAL] Incrementally Updated Backups

2010-09-23 Thread Simon Riggs
On Sat, 2010-09-11 at 14:21 -0700, Gabe Nell wrote: > Is there a way to get this without using hot standby? Why would you want to avoid using hot standby? -- Simon Riggs www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Training and Services -- Sent via pgsql-general mai

Re: [GENERAL] Restore/dump from "/usr/local/pgsql/data" directory

2010-09-23 Thread Alan Hodgson
On September 23, 2010 01:49:50 pm kongs...@stud.ntnu.no wrote: > Hi, > I have a copy of "/usr/local/pgsql/data" from old server. Is it > possible to do a dump of the sql databases in this directory, so that > I can easily migrate them to my current system? > You should be able to launch a postmas

Re: [GENERAL] Restore/dump from "/usr/local/pgsql/data" directory

2010-09-23 Thread Bruce Momjian
kongs...@stud.ntnu.no wrote: > Hi, > I have a copy of "/usr/local/pgsql/data" from old server. Is it > possible to do a dump of the sql databases in this directory, so that > I can easily migrate them to my current system? Yes, run pg_dumpall, save it, and load it into the new system. You rea

[GENERAL] Restore/dump from "/usr/local/pgsql/data" directory

2010-09-23 Thread kongsgar
Hi, I have a copy of "/usr/local/pgsql/data" from old server. Is it possible to do a dump of the sql databases in this directory, so that I can easily migrate them to my current system? -Håvard Wahl Kongsgård -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make cha

Re: [GENERAL] pg 8.4 crashing.

2010-09-23 Thread Tom Lane
Scott Marlowe writes: > I've got a problem with pg 8.4.4 crashing with a sig 6 abort due to a > panic on failing to add a right sibling in an index. Log output: > PANIC: failed to add item to the right sibling in index "logged_in_uid" > STATEMENT: INSERT INTO logged_in ... If you can apply th

Re: [GENERAL] Visualize GiST Index

2010-09-23 Thread Tom Lane
Andrew Hunter writes: > Here is the content of the gevel Makefile > subdir = contrib/gevel > top_builddir = ../.. > include $(top_builddir)/src/Makefile.global > MODULES = gevel > DATA_built = gevel.sql > DOCS = README.gevel > REGRESS = gevel > include $(top_srcdir)/contrib/contrib-global.mk O

Re: [GENERAL] Index on points

2010-09-23 Thread Jeff Davis
On Thu, 2010-09-23 at 12:45 +0200, A B wrote: > Hello. > > If I have a table like this > > create table fleet ( ship_id integer, location point); I recommend taking a look into PostGIS: http://postgis.org Regards, Jeff Davis -- Sent via pgsql-general mailing list (pgsql-general@po

Re: [GENERAL] pg 8.4 crashing.

2010-09-23 Thread Merlin Moncure
On Thu, Sep 23, 2010 at 2:28 PM, Scott Marlowe wrote: > I've got a problem with pg 8.4.4 crashing with a sig 6 abort due to a > panic on failing to add a right sibling in an index.  Log output: > > PANIC:  failed to add item to the right sibling in index "logged_in_uid" > STATEMENT:  INSERT INTO l

Re: [GENERAL] Visualize GiST Index

2010-09-23 Thread Andrew Hunter
On 2010-09-23, at 10:27 AM, Tom Lane wrote: > Andrew Hunter writes: >> On 2010-09-22, at 9:56 PM, Tom Lane wrote: >>> Andrew Hunter writes: I have been trying to install the Gevel module but am getting an error when running make on the gevel files download. The error is: /co

[GENERAL] pg 8.4 crashing.

2010-09-23 Thread Scott Marlowe
I've got a problem with pg 8.4.4 crashing with a sig 6 abort due to a panic on failing to add a right sibling in an index. Log output: PANIC: failed to add item to the right sibling in index "logged_in_uid" STATEMENT: INSERT INTO logged_in ... Now, the column that's failing here is a serial th

Re: [GENERAL] update from 9.0rc1 to 9.0

2010-09-23 Thread Jan Otto
>> is an initdb and pg_upgrade required when upgrading from 9.0rc1 to final 9.0? >> there is no mention about that in the release notes. > > the assumption is 'no' on rc->rc or rc-releases generally unless > specifically indicated in the release notes that you must do so. it > never hurts to keep

Re: [GENERAL] update from 9.0rc1 to 9.0

2010-09-23 Thread Jan Otto
>> is an initdb and pg_upgrade required when upgrading from 9.0rc1 to final 9.0? >> there is no mention about that in the release notes. > > No, there were no system catalog changes between 9.0rc1 and 9.0. thank you bruce. regards, jan -- Sent via pgsql-general mailing list (pgsql-general@post

Re: [GENERAL] update from 9.0rc1 to 9.0

2010-09-23 Thread Jan Otto
>> is an initdb and pg_upgrade required when upgrading from 9.0rc1 to final 9.0? >> there is no mention about that in the release notes. > > No, there were no system catalog changes between 9.0rc1 and 9.0. thank you bruce. regards, jan -- Sent via pgsql-general mailing list (pgsql-general@pos

Re: [GENERAL] How about synchronous notifications?

2010-09-23 Thread Merlin Moncure
On Tue, Sep 21, 2010 at 12:23 PM, Lincoln Yeoh wrote: > To me what would also be useful would be synchronous notifications. > > This would allow many programs to wait for events to happen rather than all > of them polling the database (and wasting CPU cycles, battery life, etc). > You could still

Re: [GENERAL] Visualize GiST Index

2010-09-23 Thread Tom Lane
Andrew Hunter writes: > On 2010-09-22, at 9:56 PM, Tom Lane wrote: >> Andrew Hunter writes: >>> I have been trying to install the Gevel module but am getting an error when >>> running make on the gevel files download. >>> The error is: >>> /contrib/contrib-global.mk: No such file or directory. >

Re: [GENERAL] update from 9.0rc1 to 9.0

2010-09-23 Thread Bruce Momjian
Jan Otto wrote: > hi, > > is an initdb and pg_upgrade required when upgrading from 9.0rc1 to final 9.0? > there is no mention about that in the release notes. No, there were no system catalog changes between 9.0rc1 and 9.0. -- Bruce Momjian http://momjian.us EnterpriseDB

Re: [GENERAL] update from 9.0rc1 to 9.0

2010-09-23 Thread Merlin Moncure
On Thu, Sep 23, 2010 at 11:14 AM, Jan Otto wrote: > hi, > > is an initdb and pg_upgrade required when upgrading from 9.0rc1 to final 9.0? > there is no mention about that in the release notes. the assumption is 'no' on rc->rc or rc-releases generally unless specifically indicated in the release n

Re: [GENERAL] Unable to upgrade old cluster from 8.4 to 9.0

2010-09-23 Thread Bruce Momjian
Thom Brown wrote: > On 23 September 2010 10:51, Boris wrote: > > Hello, > > > > I have Debian Linux (unstable) server, and I am trying to upgrade 8.4 > > version > > database to 9.0, all developer packages for both versions were installed, as > > well as client ( postgresql-server-dev-8.4 > > pos

Re: [GENERAL] Need magic for identifieing double adresses

2010-09-23 Thread Octavio Alvarez
On Thu, 16 Sep 2010 06:22:15 -0700, Andreas wrote: It's not only typos to catch. There is variation in the way to write things that not necessarily are wrong. e.g. Miller's Bakery Bakery Miller Bakery Miller, Ltd. Bakery Miller and sons Bakery Smith (formerly Miller) and the usual Strawberry

Re: [GENERAL] Unable to upgrade old cluster from 8.4 to 9.0

2010-09-23 Thread Thom Brown
On 23 September 2010 10:51, Boris wrote: > Hello, > > I have Debian Linux (unstable) server, and I am trying to upgrade 8.4 version > database to 9.0, all developer packages for both versions were installed, as > well as client ( postgresql-server-dev-8.4 > postgresql-client-8.4 postgresql-server-

Re: [GENERAL] Unable to upgrade old cluster from 8.4 to 9.0

2010-09-23 Thread Sandeep Srinivasa
There is already a bug filed for this: http://bugs.debian.org/597600 According to mpitt (the maintainer), the supported upgrade path is to use pg_upgradecluster On Thu, Sep 23, 2010 at 3:21 PM, Boris wrote: > Hello, > > I have Debian Linux (unstable) server, and I am trying to upgrade 8.4 > v

Re: [GENERAL] Postgres wont drop foriegn keys on tables.

2010-09-23 Thread Tom Lane
Chris Barnes writes: > I am attempting to drop an foreign key on a table and it sits for hours and > doesn't drop or put anything into the log. Dropping a foreign key is fast in itself, but it requires exclusive lock on both the referencing and referenced tables. Look to see what is blocking th

Re: [GENERAL] Postgres wont drop foriegn keys on tables.

2010-09-23 Thread Vick Khera
On Thu, Sep 23, 2010 at 11:01 AM, Chris Barnes wrote: > I am attempting to drop an foreign key on a table and it sits for hours and > doesn't drop or put anything into the log. > Does the pg_stat_activity view show that it is waiting for a lock? It will need to lock both the origin and destinati

[GENERAL] Unable to upgrade old cluster from 8.4 to 9.0

2010-09-23 Thread Boris
Hello, I have Debian Linux (unstable) server, and I am trying to upgrade 8.4 version database to 9.0, all developer packages for both versions were installed, as well as client ( postgresql-server-dev-8.4 postgresql-client-8.4 postgresql-server-dev-9.0 postgresql-client-9.0). Here is the comma

[GENERAL] update from 9.0rc1 to 9.0

2010-09-23 Thread Jan Otto
hi, is an initdb and pg_upgrade required when upgrading from 9.0rc1 to final 9.0? there is no mention about that in the release notes. regards, jan -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsq

Re: [GENERAL] Postgres wont drop foriegn keys on tables.

2010-09-23 Thread Chris Barnes
Sorry, I am running the following. [postg...@pgprd01 pgcheck]$ psql --version psql (PostgreSQL) 8.4.2 contains support for command-line editing [postg...@pgprd01 pgcheck]$ uname -a Linux system.name.com 2.6.18-164.el5 #1 SMP Thu Sep 3 03:28:30 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux From:

[GENERAL] Postgres wont drop foriegn keys on tables.

2010-09-23 Thread Chris Barnes
I am having an odd problem that I have seen before. It usually clears itself after I restart postgres. I am attempting to drop an foreign key on a table and it sits for hours and doesn't drop or put anything into the log. Killing the alter puts an error in, but it doesn't time out and it cause

Re: [GENERAL] Feature request: pgcron

2010-09-23 Thread Magnus Hagander
On Thu, Sep 23, 2010 at 16:20, Martin A. Brooks wrote: > Hi > > I did not see this feature on the TODO page on the wiki.  I apologise if I > have overlooked something similar. > > I would like postgres to have a cron-like feature for scheduling things to > happen at particular times. > > An exampl

[GENERAL] Feature request: pgcron

2010-09-23 Thread Martin A. Brooks
Hi I did not see this feature on the TODO page on the wiki. I apologise if I have overlooked something similar. I would like postgres to have a cron-like feature for scheduling things to happen at particular times. An example of this might be routinely purging data from tables, or vacuuming spe

Re: [GENERAL] What was new in 8.4 & 8.3?

2010-09-23 Thread Scott Ribe
Actually, I found the feature matrix on the wiki, which serves my purpose pretty well--reminder of major new features that I might not have adopted... -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice -- Sent via pgsql-general mailing list (pgsql

Re: [GENERAL] What was new in 8.4 & 8.3?

2010-09-23 Thread Grzegorz Jaśkiewicz
2010/9/23 Raymond O'Donnell : > On 23/09/2010 13:55, Grzegorz Jaśkiewicz wrote: >> >> or even better, learn English properly and contribute your translation. >> I'm not whining that there's no Polish translation. >> >> French people are somewhat specific in that matter, don't get me >> started on a

Re: [GENERAL] What was new in 8.4 & 8.3?

2010-09-23 Thread Raymond O'Donnell
On 23/09/2010 13:55, Grzegorz Jaśkiewicz wrote: or even better, learn English properly and contribute your translation. I'm not whining that there's no Polish translation. French people are somewhat specific in that matter, don't get me started on aviation (cos it drives me insane). :-) I

Re: [GENERAL] What was new in 8.4 & 8.3?

2010-09-23 Thread Guillaume Lelarge
Le 23/09/2010 14:42, Vick Khera a écrit : > On Thu, Sep 23, 2010 at 3:15 AM, Guillaume Lelarge > wrote: >> Nope, that's the first time we have this. Marc Cousin already did this >> in french for the 8.4 release. Unfortunately, it's only available in >> french. For those reading french, it's availa

Re: [GENERAL] What was new in 8.4 & 8.3?

2010-09-23 Thread Grzegorz Jaśkiewicz
or even better, learn English properly and contribute your translation. I'm not whining that there's no Polish translation. French people are somewhat specific in that matter, don't get me started on aviation (cos it drives me insane). -- Sent via pgsql-general mailing list (pgsql-general@p

Re: [GENERAL] What was new in 8.4 & 8.3?

2010-09-23 Thread Vick Khera
On Thu, Sep 23, 2010 at 3:15 AM, Guillaume Lelarge wrote: > Nope, that's the first time we have this. Marc Cousin already did this > in french for the 8.4 release. Unfortunately, it's only available in > french. For those reading french, it's available here: > > > http://blog.postgresql.fr/index.p

[GENERAL] Index on points

2010-09-23 Thread A B
Hello. If I have a table like this create table fleet ( ship_id integer, location point); and fill it with a lot of ships and their locations and then want to create an index on this to speed up operations on finding ships within a certain region (let's say its a rectangular region), how do I

Re: [GENERAL] Kill -9 for a session process caused all the sessions to be killed

2010-09-23 Thread Atul.Goel
Thanks Tom, I found the right way to kill the process. Regards, Atul Goel -Original Message- From: Tom Lane [mailto:t...@sss.pgh.pa.us] Sent: 22 September 2010 17:43 To: Atul Goel Cc: pgsql-general@postgresql.org Subject: Re: [GENERAL] Kill -9 for a session process caused all the sessio

Re: [GENERAL] [pgsql-sql] Daily digest v1.3328 (5 messages)

2010-09-23 Thread Raymond O'Donnell
On 23/09/2010 02:00, Adrian Klaver wrote: On Wednesday 22 September 2010 5:40:55 pm David Wilson wrote: On Wed, Sep 22, 2010 at 8:30 PM, Adrian Klaverwrote: From here; http://www.postgresql.org/docs/8.4/interactive/datatype-boolean.html I believe the question relates to changing the string

Re: [GENERAL] What was new in 8.4 & 8.3?

2010-09-23 Thread Guillaume Lelarge
Le 23/09/2010 01:28, Scott Ribe a écrit : > The what's new in 9.0 document on the wiki is great. Is there anything > similar for 8.4 & 8.3 & so on? > Nope, that's the first time we have this. Marc Cousin already did this in french for the 8.4 release. Unfortunately, it's only available in french