Re: [GENERAL] Segmentation Fault during database restoration

2009-09-16 Thread Sulman Sarwar
I used one click installer for Mac OSX from EnterpriseDB. http://www.enterprisedb.com/products/pgdownload.do#osx On Thu, Sep 17, 2009 at 4:10 AM, Tom Lane wrote: > Craig Ringer writes: > > I ask in particular because there have been big problems caused by > > building PostgreSQL as a universa

Re: [GENERAL] Unicode normalization

2009-09-16 Thread Alvaro Herrera
Andreas Kalsch wrote: > 2) Transfering this to PL/Python: > > CREATE OR REPLACE FUNCTION test (str text) > RETURNS text > AS $$ >import unicodedata >return unicodedata.normalize('NFKD', str.decode('UTF-8')) > $$ LANGUAGE plpythonu; This is wrong, which is why we published a correct vers

Re: [GENERAL] wrong error from ./configure in pgsql 8.3.8 for libxml

2009-09-16 Thread Scott Marlowe
On Wed, Sep 16, 2009 at 8:57 PM, Tom Lane wrote: > Scott Marlowe writes: >> Was building pgsql 8.3.8 from source on a new install of Centos 5.2, >> and got this error from ./configure --with-libxml : > >> checking for xmlSaveToBuffer in -lxml2... no >> configure: error: library 'xml2' (version >=

Re: [GENERAL] Segmentation Fault during database restoration

2009-09-16 Thread Tom Lane
Craig Ringer writes: > I ask in particular because there have been big problems caused by > building PostgreSQL as a universal binary. It seems to be important to > configure it and build it only for the architecture you're actually > using. That probably goes for ia32 vs x86_64 as well as ppc32/p

Re: [GENERAL] Segmentation Fault during database restoration

2009-09-16 Thread Craig Ringer
On Wed, 2009-09-16 at 23:32 +0100, Sulman Sarwar wrote: > Hi, > > I am new to PostgreSQL. I have been trying to restore a > compressed(.gz) database using Just out of interest, how did you install PostgreSQL? Did you install a pre-built binary? If so, from where? Guessing from the paths, it

Re: [GENERAL] wrong error from ./configure in pgsql 8.3.8 for libxml

2009-09-16 Thread Tom Lane
Scott Marlowe writes: > Was building pgsql 8.3.8 from source on a new install of Centos 5.2, > and got this error from ./configure --with-libxml : > checking for xmlSaveToBuffer in -lxml2... no > configure: error: library 'xml2' (version >= 2.6.23) is required for XML > support > But I had libx

Re: [GENERAL] Segmentation Fault during database restoration

2009-09-16 Thread Tom Lane
Sulman Sarwar writes: > I am new to PostgreSQL. I have been trying to restore a compressed(.gz) > database using > gunzip -c *filename*.gz | psql *dbname* > After some 8 or 9 tables are restored the program exists giving error: > Segmentation Fault. That's weird ... gets_fromFile certainly looks

Re: [GENERAL] Regarding initdb & pg_ctl

2009-09-16 Thread Vikram Patil
Hey Magnus, I tried out your suggestion, we are providing quotes correctly. We tried out one thing we installed postgresql outside Program Files. When I say installed I want to mean that I copied compiled binaries. User installing is local user belonging to Administrators group. Then we ran ini

[GENERAL] Segmentation fault during restoration of compressed(.gz) database

2009-09-16 Thread sulmansarwar
Hi, I am new to PostgreSQL. I have been trying to restore a compressed(.gz) database using gunzip -c filename.gz | psql dbname After some 8 or 9 tables are restored the program exists giving error: Segmentation Fault. I have attached the crash report below. ---

[GENERAL] Segmentation Fault during database restoration

2009-09-16 Thread Sulman Sarwar
Hi, I am new to PostgreSQL. I have been trying to restore a compressed(.gz) database using gunzip -c *filename*.gz | psql *dbname* After some 8 or 9 tables are restored the program exists giving error: Segmentation Fault. I have attached the crash report below.

[GENERAL] oom ( kernel: postgres invoked oom-killer: gfp_mask=0x201d2, order=0, oomkilladj=0 )

2009-09-16 Thread Chris Barnes
I am having a problem with the system freezing when the system is very busy. I have found the entry oom-killer in our messages log. I would like to confirm that the proper way of dealing with this is to set the sysctl parameter below. Also, the kernel parameter for shmmax and shmall are not cor

[GENERAL] How to simplify unicode strings

2009-09-16 Thread Andreas Kalsch
Thank you Sam, this leaded to the correct solution: CREATE OR REPLACE FUNCTION simplify (str text) RETURNS text AS $$ import unicodedata s = unicodedata.normalize('NFKD', str.decode('UTF-8')) s = ''.join(c for c in s if unicodedata.combining(c) == 0) return s.encode('UTF-8') $$ LANGUAGE plpyth

Re: [GENERAL] Unicode normalization

2009-09-16 Thread Scott Marlowe
On Wed, Sep 16, 2009 at 4:42 PM, Sam Mason wrote: > On Wed, Sep 16, 2009 at 09:35:02PM +0200, Andreas Kalsch wrote: >> CREATE OR REPLACE FUNCTION test (str text) >>  RETURNS text >> AS $$ >>    import unicodedata >>    return unicodedata.normalize('NFKD', str.decode('UTF-8')) >> $$ LANGUAGE plpyth

Re: [GENERAL] Current state of XML capabilities in PostgreSQL?

2009-09-16 Thread Nathan Widmyer
I have this XML that I don't wish to parse out to tables (BTDT and don't wish to go there for the most part). There might be the uncommon chance where an XML-friendly operation would be very useful. On 9/16/09, Scott Bailey wrote: >> I'm looking for the current state of XML capabilities in Post

Re: [GENERAL] Unicode normalization

2009-09-16 Thread Sam Mason
On Wed, Sep 16, 2009 at 09:35:02PM +0200, Andreas Kalsch wrote: > CREATE OR REPLACE FUNCTION test (str text) > RETURNS text > AS $$ >import unicodedata >return unicodedata.normalize('NFKD', str.decode('UTF-8')) > $$ LANGUAGE plpythonu; I'd guess you want that to be: return unicodedata.

Re: [GENERAL] Current state of XML capabilities in PostgreSQL?

2009-09-16 Thread Scott Bailey
I'm looking for the current state of XML capabilities in PostgreSQL and I'm coming up with a lot of confusing links and a bit short on documentation. Postgres' XML is still lacking in a few spots. But the core functionality is certainly there to do all of the every day stuff. The trick with

Re: [GENERAL] Unicode normalization

2009-09-16 Thread Andreas Kalsch
Update: The error is of course: The function tries to return "str" instead of unicode. It is not str.decode('UTF-8') which causes the error. Andreas Kalsch schrieb: No, I need a solution which is as generic as possible. I use UTF-8 encoded unicode strings on all levels. This is what I have do

[GENERAL] wrong error from ./configure in pgsql 8.3.8 for libxml

2009-09-16 Thread Scott Marlowe
Was building pgsql 8.3.8 from source on a new install of Centos 5.2, and got this error from ./configure --with-libxml : checking for xmlSaveToBuffer in -lxml2... no configure: error: library 'xml2' (version >= 2.6.23) is required for XML support But I had libxml2 v 2.6.26 or so installed. The r

[GENERAL] 8.4 installer

2009-09-16 Thread Christine Penner
Hi, I'm using Windows XP Pro. I am trying to install Postgres 8.4. I had 8.3 installed. Because I didn't have any important data, to make it easier I removed 8.3, the data directory, removed the Postgres windows user and removed all registry values I could find. I also shut down my anti virus

Re: [GENERAL] Unicode normalization

2009-09-16 Thread Andreas Kalsch
No, I need a solution which is as generic as possible. I use UTF-8 encoded unicode strings on all levels. This is what I have done so far: 1) Writing a separate Python command line script for testing - works as expected: #!/usr/bin/python import sys import unicodedata str = sys.argv[1].d

Re: [GENERAL] Unicode normalization

2009-09-16 Thread David Fetter
On Wed, Sep 16, 2009 at 07:20:21PM +0200, Andreas Kalsch wrote: > Has somebody integrated Unicode normalization into Postgres? if not, I > would have to implement my own function by using this CPAN module: > http://search.cpan.org/~sadahiro/Unicode-Normalize-1.03/ . > > I need a function which

Re: [GENERAL] pgadmin is changing pgpass.conf

2009-09-16 Thread Raymond O'Donnell
On 16/09/2009 10:55, Howard Cole wrote: > Hi All, > > I have been having a few problems with my password file recently, > causing my scheduled pg_dump to fail. The problem is that the > pgpass.conf file keeps changing. Eventually I narrowed it down to using > pgadmin. Every time I start pgadmin, i

[GENERAL] Unicode normalization

2009-09-16 Thread Andreas Kalsch
Has somebody integrated Unicode normalization into Postgres? if not, I would have to implement my own function by using this CPAN module: http://search.cpan.org/~sadahiro/Unicode-Normalize-1.03/ . I need a function which removes all diacritics (1) and transforms some characters to a more compa

Re: [GENERAL] I need a Postgres Admin $130K + 20K in NYC Any Ideas?

2009-09-16 Thread Sam Mason
[ crap, that wasn't supposed to go to the list ] On Wed, Sep 16, 2009 at 06:30:46PM +0100, Sam Mason wrote: > Martin, *please* stop responding publicly to this thread I'm feeling very embarrassed now! -- Sam http://samason.me.uk/ -- Sent via pgsql-general mailing list (pgsql-general@postg

Re: [GENERAL] I need a Postgres Admin $130K + 20K in NYC Any Ideas?

2009-09-16 Thread Sam Mason
On Wed, Sep 16, 2009 at 12:54:07PM -0400, Martin Gainty wrote: > Amen! Martin, *please* stop responding publicly to this thread you idiotic child. You're digging yourself further and further into a mess, and making yourself look horribly unprofessional at the same time. That and ignoring several

Re: [GENERAL] I need a Postgres Admin $130K + 20K in NYC Any Ideas?

2009-09-16 Thread Martin Gainty
Amen! Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleit

Re: [GENERAL] Current state of XML capabilities in PostgreSQL?

2009-09-16 Thread Grzegorz Jaśkiewicz
On Wed, Sep 16, 2009 at 5:24 PM, John R Pierce wrote: > why would you store data thats wrapped in two copies of its fieldname along > with other punctuation?    wouldn't it make more sense to decompose your XML > source into proper tables so proper indexes and relational sql queries can > be made?

Re: [GENERAL] Current state of XML capabilities in PostgreSQL?

2009-09-16 Thread John R Pierce
Nathan Widmyer wrote: I just plan on storing already-made XML in a column, then be able to search on it using where clauses with XPath expressions (e.g. select tv_show,xpath('/station/times', xml_data) from table_with_xml where xpath('/name', xml_data)='Captain Kangaroo'). I do understand ther

Re: [GENERAL] I need a Postgres Admin $130K + 20K in NYC Any Ideas?

2009-09-16 Thread Hoover, Jeffrey
All right children. Recess is over, get back to work. -Original Message- From: pgsql-general-ow...@postgresql.org [mailto:pgsql-general-ow...@postgresql.org] On Behalf Of Ed Koch Sent: Wednesday, September 16, 2009 8:27 AM To: 'mgai...@hotmail.com'; 'g...@seespotcode.net' Cc: 'dmag...@gm

Re: [GENERAL] I need a Postgres Admin $130K + 20K in NYC Any Ideas?

2009-09-16 Thread Madison Kelly
Ed Koch wrote: How are you even IN the group when nobody here agrees with you Obviously you have nothing better to do, get a Hobby Gainty Ed, please, posts like this aren't helping. We're all adults here, can we all please start acting like one? Madi -- Sent via pgsql-general maili

Re: [GENERAL] psql exit code, bug ?

2009-09-16 Thread Grzegorz Jaśkiewicz
2009/9/16 Tom Lane : > =?UTF-8?Q?Grzegorz_Ja=C5=9Bkiewicz?= writes: >> Looks like psql loves to report on errors, only when -c is used, >> otherwise return code is always 0... > > The documentation seems perfectly clear on this point: > > psql returns 0 to the shell if it finished normally, 1 if a

Re: [GENERAL] psql exit code, bug ?

2009-09-16 Thread Tom Lane
=?UTF-8?Q?Grzegorz_Ja=C5=9Bkiewicz?= writes: > Looks like psql loves to report on errors, only when -c is used, > otherwise return code is always 0... The documentation seems perfectly clear on this point: psql returns 0 to the shell if it finished normally, 1 if a fatal error of its own (out o

[GENERAL] psql exit code, bug ?

2009-09-16 Thread Grzegorz Jaśkiewicz
http://gj.pastebin.com/f119e67bc Looks like psql loves to report on errors, only when -c is used, otherwise return code is always 0... I tested 8.3 and cvs-head, both have the same issue. Is that the 'by design' (bug/feature) ? -- GJ -- Sent via pgsql-general mailing list (pgsql-general@pos

Re: [GENERAL] I need a Postgres Admin $130K + 20K in NYC Any Ideas?

2009-09-16 Thread Ed Koch
Martin, no reason to take the discussion off line. Your statements were false. Nobody here appreciates someone who blogs to add controversy. As always I'm taking the high road. If anyone wants to hear more, please write and I will respond to you individually. - Original Message -

Re: [GENERAL] I need a Postgres Admin $130K + 20K in NYC Any Ideas?

2009-09-16 Thread Ed Koch
How are you even IN the group when nobody here agrees with you Obviously you have nothing better to do, get a Hobby Gainty - Original Message - From: Martin Gainty To: Ed Koch; g...@seespotcode.net Cc: dmag...@gmail.com ; pgsql-general@postgresql.org Sent: Wed Sep 16 07:24:28

Re: [GENERAL] I need a Postgres Admin $130K + 20K in NYC Any Ideas?

2009-09-16 Thread Ed Koch
I second that. Why would such a thing be written? - Original Message - From: Madison Kelly To: Martin Gainty Cc: Ed Koch; g...@seespotcode.net ; dmag...@gmail.com ; pgsql-general@postgresql.org Sent: Wed Sep 16 07:37:13 2009 Subject: Re: [GENERAL] I need a Postgres Admin $130K + 20K i

Re: [GENERAL] I need a Postgres Admin $130K + 20K in NYC Any Ideas?

2009-09-16 Thread Ed Koch
If anyone wants to have a MEANINGFUL conversation please respond to me off line - Gaitly needs attention apparently.. - Original Message - From: Martin Gainty To: li...@alteeve.com Cc: Ed Koch; g...@seespotcode.net ; dmag...@gmail.com ; pgsql-general@postgresql.org Sent: Wed Sep 16

[GENERAL] Default listing on -Fc files

2009-09-16 Thread Francisco Reyes
Is there a way to tell to which table a DEFAULT rule belongs to? Example: Have multiple files with serial. The sequence is setup as a default. Because all tables have the same structure the DEFAULT lines on a file pg_dumped with -Fc look the same. The lines look like DEFAULT public id user DE

Re: [GENERAL] I need a Postgres Admin $130K + 20K in NYC Any Ideas?

2009-09-16 Thread Robert Mah
As someone who lives in NYC and has for a good 15 years now, your numbers are way off. While rent here is quite expensive, not everyone is stupid and plunks down $2500 for a studio (it can be done in nice buildings). Most people pay maybe $1500 for a decent studio (less if you want not-so-nice)

[GENERAL] Current state of XML capabilities in PostgreSQL?

2009-09-16 Thread Nathan Widmyer
Hello, I'm looking for the current state of XML capabilities in PostgreSQL and I'm coming up with a lot of confusing links and a bit short on documentation. I first read that there used to be an xml2 contrib module for Postgres that provided a lot of functions to read/write and simultaneously val

Re: [GENERAL] I need a Postgres Admin $130K + 20K in NYC Any Ideas?

2009-09-16 Thread Martin Gainty
in the US anyone making false statements about anyone is subject to a libel lawsuit if you want to change that law i suggest you become a lawyer Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachri

Re: [GENERAL] I need a Postgres Admin $130K + 20K in NYC Any Ideas?

2009-09-16 Thread Madison Kelly
Martin Gainty wrote: lets assume you never take a cab anywhere and you pack enough PB&J for a week so we dont have to argue with Ed Koch anyone that has lived in NY knows you need 2500/month for any decent studio apt Also you need first,last and security to get the apt Making false statements

Re: [GENERAL] I need a Postgres Admin $130K + 20K in NYC Any Ideas?

2009-09-16 Thread Martin Gainty
lets assume you never take a cab anywhere and you pack enough PB&J for a week so we dont have to argue with Ed Koch anyone that has lived in NY knows you need 2500/month for any decent studio apt Also you need first,last and security to get the apt Making false statements to this group will get

[GENERAL] pgadmin is changing pgpass.conf

2009-09-16 Thread Howard Cole
Hi All, I have been having a few problems with my password file recently, causing my scheduled pg_dump to fail. The problem is that the pgpass.conf file keeps changing. Eventually I narrowed it down to using pgadmin. Every time I start pgadmin, it changes the contents of my pgpass file, even

Re: [GENERAL] hardware information

2009-09-16 Thread Ow Mun Heng
-Original Message- From: pgsql-general-ow...@postgresql.org [mailto:pgsql-general- > "htop" is really nice too.    http://htop.sourceforge.net/ > (disclaimer - I did not write it) I like atop better -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to

Re: [GENERAL] invalid byte sequence for encoding

2009-09-16 Thread Albe Laurenz
Daniel Schuchardt wrote: > but look here: > > X=# UPDATE art SET ak_auftxt= '*', ak_auftxt_rtf= > '{\\rtf1\\ansi\\deff0{\\fonttbl{\\f0\\fnil\\fcharset0 > Arial;}}\r\n\\viewkind4\\uc1\\pard\\lang1031\\fs20 * > \r\n\\par }\r\n\0' WHERE ak_nr='TEST'; > WARNING: nonstandard use of \\ in a strin