Re: [GENERAL] PSQL 9.1.3 segmentation fault

2012-03-30 Thread Jeff Davis
On Fri, 2012-03-30 at 20:11 +, Hu, William wrote: > I used –with-openssl option with the configure, after starting the > server, ... > Psql would cause a segmentation fault, createuser did too. Can you try with plain "./configure --prefix=/your/install/path" and see if there is still a problem

Re: [GENERAL] pg_dump incredibly slow dumping a single schema from a large db

2012-03-30 Thread Mike Roest
> > That could be out-of-date info though. Here's some info about > another possibility: > http://wiki.postgresql.org/wiki/Profiling_with_perf > > There we go this perf worked on the VM. The file is 6 megs so I've dropped it here. That was doing perf for the length of the pg_dump command and the

[GENERAL] PSQL 9.1.3 segmentation fault

2012-03-30 Thread Hu, William
I downloaded the stable version of postgresql-9.1.3.tar.gz, installed on a CentOS 5.7 final server. I used -with-openssl option with the configure, after starting the server, Psql would cause a segmentation fault, createuser did too. I don't think the postgresql log shows anything on this, plea

Re: [GENERAL] PANIC: corrupted item pointer

2012-03-30 Thread Jeff Davis
On Fri, 2012-03-30 at 16:02 +0200, Janning Vygen wrote: > The PANIC occurred first on March, 19. My servers uptime ist 56 days, so > about 4th of February. There was no power failure since i started to use > this machine. This machine is in use since March, 7. I checked it twice: > Now power failur

Re: [GENERAL] where to find initdb log file?

2012-03-30 Thread Alan Hodgson
On Saturday, March 31, 2012 01:52:37 AM clover white wrote: > HI, i have a problem when using pg, thanks for help. :) > > I used command initdb, but nothing was created in my pgdata directory. > however, I used command ps to list all the processes, and I found inidb > process kept running all t

[GENERAL] where to find initdb log file?

2012-03-30 Thread clover white
HI, i have a problem when using pg, thanks for help. :) I used command initdb, but nothing was created in my pgdata directory. however, I used command ps to list all the processes, and I found inidb process kept running all the time. I don't know what happened, and i want to read the log file

Re: [GENERAL] pg_dump incredibly slow dumping a single schema from a large db

2012-03-30 Thread Tom Lane
Mike Roest writes: > That was on the CentOS 5.8 x64 machine. The one I'm trying it from now is > Ubuntu 11.10 x64 Hm. On current Red-Hat-derived systems I'd recommend oprofile, although you need root privileges to use that. Not real sure what is available on Ubuntu, but our crib sheet for opro

Re: [GENERAL] ERROR: invalid byte sequence for encoding "UTF8": 0xc325

2012-03-30 Thread Alan Hodgson
On Friday, March 30, 2012 10:00:31 AM Prashant Bharucha wrote: > Hello All > > Could you help me to automatically convert all db request into UTF8 encode ? > Set your session client_encoding to match your data. That's about as close as you can get to automatic. http://www.postgresql.org/docs

Re: [GENERAL] pg_dump incredibly slow dumping a single schema from a large db

2012-03-30 Thread Mike Roest
That was on the CentOS 5.8 x64 machine. The one I'm trying it from now is Ubuntu 11.10 x64 On Fri, Mar 30, 2012 at 11:30 AM, Tom Lane wrote: > Mike Roest writes: > > Ok I just realized that's probably not going to be much help :) > > gmon.out would be of no value to anybody else anyway --- m

Re: [GENERAL] pg_dump incredibly slow dumping a single schema from a large db

2012-03-30 Thread Tom Lane
Mike Roest writes: > Ok I just realized that's probably not going to be much help :) gmon.out would be of no value to anybody else anyway --- making sense of it requires the exact executable you took the measurements with. > 0.00 0.00 0.005 0.00 0.00 canonicalize_path

Re: [GENERAL] pg_dump incredibly slow dumping a single schema from a large db

2012-03-30 Thread Mike Roest
Ok I just realized that's probably not going to be much help :) 0.00 0.00 0.005 0.00 0.00 canonicalize_path 0.00 0.00 0.005 0.00 0.00 trim_trailing_separator 0.00 0.00 0.003 0.00 0.00 strlcpy 0.00 0.00 0

[GENERAL] ERROR: invalid byte sequence for encoding "UTF8": 0xc325

2012-03-30 Thread Prashant Bharucha
Hello All Could you help me to automatically convert all db request into UTF8 encode ? Thx Prashant

Re: [GENERAL] pg_dump incredibly slow dumping a single schema from a large db

2012-03-30 Thread Mike Roest
For sure I'll work on that now. One thing I noticed looking through the pg_dump code based on the messages and the code one thing I noticed it seems to be grabbing the full dependency graph for the whole db rather then limiting it by the schema (not sure if limiting this would be possible) This q

Re: [GENERAL] pg_dump incredibly slow dumping a single schema from a large db

2012-03-30 Thread Tom Lane
Mike Roest writes: > This dump is currently taking around 8 minutes. While dumping the pg_dump > process is using 100% of one core in the server (24 core machine). Doing a > -v pg_dump I found that the following stages are taking the majority of the > time > reading user_defined tables (2 minut

[GENERAL] pg_dump incredibly slow dumping a single schema from a large db

2012-03-30 Thread Mike Roest
Hey Everyone, I've got an interesting issue. We're running postgres 9.1.1 linux x64 centos 5.8 aspdata=# select version(); version --

[GENERAL] Surge 2012 CFP is Open!

2012-03-30 Thread Katherine Jeschke
Surge 2012, the scalability conference, September 27-28, Baltimore, MD has opened its CFP. Please visit http://omniti.com/surge/2012/cfp for details. -- Katherine Jeschke Director of Marketing and Creative Services OmniTI Computer Consulting, Inc. 7070 Samuel Morse Drive, Ste.150 Columbia, MD 210

[GENERAL] Re: double check the role has what's kind of the privilege? And the same for the objects. Thanks.

2012-03-30 Thread leaf_yxj
I think they don't care about the grantee. they only care about the users ( for example the application team user, develop team user) and the privileges they have. Thanks. Guys. Grace -- View this message in context: http://postgresql.1045698.n5.nabble.com/double-check-the-role-has-what-s-kind-o

Re: [GENERAL] Re: double check the role has what's kind of the privilege? And the same for the objects. Thanks.

2012-03-30 Thread Albe Laurenz
Tom Lane wrote: >>> My bosses ask me to list all the users and all the privilege which >> the superuser granted to the >>> users. >>> Then they can double check that I did right thing or not? > >> Unlike Oracle, PostgreSQL does not have a concept of "grantor", >> so it is not possible to find ou

[GENERAL] Re: how to pass the function caller's parameter to inside the function. syntax error at or near "$1"

2012-03-30 Thread leaf_yxj
merlin : Thanks. -- View this message in context: http://postgresql.1045698.n5.nabble.com/how-to-pass-the-function-caller-s-parameter-to-inside-the-function-syntax-error-at-or-near-1-tp5601045p5606816.html Sent from the PostgreSQL - general mailing list archive at Nabble.com. -- Sent via pgsql-

Re: [GENERAL] PostgreSQL crashed server

2012-03-30 Thread Craig Ringer
On 03/26/2012 07:41 PM, Martín Marqués wrote: Any ideas? Last year I had memory problems with this server (changed the faulty bank), I wouldn't want it to be happening again. It's a crash deep in memory management for inode storage used by the ext3 filesystem code. Chances are it's a hardware

Re: [GENERAL] Re: double check the role has what's kind of the privilege? And the same for the objects. Thanks.

2012-03-30 Thread Tom Lane
"Albe Laurenz" writes: > leaf_yxj wrote: >> My bosses ask me to list all the users and all the privilege which > the superuser granted to the >> users. >> Then they can double check that I did right thing or not? > Unlike Oracle, PostgreSQL does not have a concept of "grantor", > so it is not p

Re: [GENERAL] PANIC: corrupted item pointer

2012-03-30 Thread Janning Vygen
Hi, thanks so much for answering. I found a "segmentation fault" in my logs so please check below: > On Tue, 2012-03-27 at 11:47 +0200, Janning Vygen wrote: >> >> I am running postgresql-9.1 from debian backport package fsync=on >> full_page_writes=off > > That may be unsafe (and usually is) d

[GENERAL] Re: double check the role has what's kind of the privilege? And the same for the objects. Thanks.

2012-03-30 Thread leaf_yxj
Hi Albe, My bosses ask me to list 1)all the users and the roles associated with the users. 2) all the users and the privileges associated with that users. Thanks. Regards. Grace At 2012-03-30 16:07:08,"Albe Laurenz *EXTERN* [via PostgreSQL]" wrote: leaf_yxj wrote: > My bosses ask me

[GENERAL] Adding new and changed data

2012-03-30 Thread Hendrik Visage
gs <== 03/26/2012,00:00:00,133272,86411.1, 4.10, 0.18, 53.36, 93, 03/27/2012,00:00:00,1332806400,86406.9, 4.23, 0.21, 53.63, 96, 03/28/2012,00:00:00,1332892800,86409.0, 4.15, 0.18, 53.94, 93, 03/29/2012,00:00:00,1332979200,57606.0, 4.17, 0.17, 54.19, 78,

Re: [GENERAL] user get notification when postgresql database updated

2012-03-30 Thread Alban Hertroys
On 29 Mar 2012, at 11:43, Albert wrote: > it a browser based application. so would you advice me about the best way to > poll the database for notifications ? > > I've been read about DB triggers but still can't tell if it will help me. The HTTP protocol doesn't have a push mechanism, so you c

Re: [GENERAL] default value returned from sql stmt

2012-03-30 Thread Alban Hertroys
On 30 Mar 2012, at 10:22, Richard Huxton wrote: > On 30/03/12 08:46, Pavel Stehule wrote: >> 2012/3/30 Richard Huxton: >>> On 29/03/12 23:28, Pavel Stehule wrote: select anum from t1 where anum = 4 union all select 100 limit 1; >>> >>> >>> I'm not sure the ordering here is guaran

Re: [GENERAL] default value returned from sql stmt

2012-03-30 Thread Pavel Stehule
2012/3/30 Richard Huxton : > On 30/03/12 08:46, Pavel Stehule wrote: >> >> 2012/3/30 Richard Huxton: >>> >>> On 29/03/12 23:28, Pavel Stehule wrote: select anum from t1 where anum = 4 union all select 100 limit 1; >>> >>> >>> >>> I'm not sure the ordering here is guaranteed by t

Re: [GENERAL] user get notification when postgresql database updated

2012-03-30 Thread Albert
another Q : my app should display notifications to each user depends on his selected cars. can i do that just using ajax and php ? -- View this message in context: http://postgresql.1045698.n5.nabble.com/user-get-notification-when-postgresql-database-updated-tp5600187p5606001.html Sent from the

Re: [GENERAL] default value returned from sql stmt

2012-03-30 Thread Richard Huxton
On 30/03/12 08:46, Pavel Stehule wrote: 2012/3/30 Richard Huxton: On 29/03/12 23:28, Pavel Stehule wrote: select anum from t1 where anum = 4 union all select 100 limit 1; I'm not sure the ordering here is guaranteed by the standard though, is it? You could end up with the 4 being discarded.

Re: [GENERAL] octet_length operator: what encoding?

2012-03-30 Thread Albe Laurenz
Chris Angelico wrote: > We have a number of varchar fields and I'm looking to see what the > greatest data length in any is, after UTF-8 encoding. The two-argument > length function appears (I think) to take a byte array, so it's the > opposite of what I'm looking for (give it a UTF-8 encoded strin

Re: [GENERAL] Re: double check the role has what's kind of the privilege? And the same for the objects. Thanks.

2012-03-30 Thread Albe Laurenz
leaf_yxj wrote: > My bosses ask me to list all the users and all the privilege which the superuser granted to the > users. > Then they can double check that I did right thing or not? Unlike Oracle, PostgreSQL does not have a concept of "grantor", so it is not possible to find out which privilege

Re: [GENERAL] default value returned from sql stmt

2012-03-30 Thread Pavel Stehule
2012/3/30 Richard Huxton : > On 29/03/12 23:28, Pavel Stehule wrote: >> >> select anum from t1 where anum = 4 >> union all select 100 limit 1; > > > I'm not sure the ordering here is guaranteed by the standard though, is it? > You could end up with the 4 being discarded. A order is random for only

Re: [GENERAL] default value returned from sql stmt

2012-03-30 Thread Richard Huxton
On 29/03/12 23:28, Pavel Stehule wrote: select anum from t1 where anum = 4 union all select 100 limit 1; I'm not sure the ordering here is guaranteed by the standard though, is it? You could end up with the 4 being discarded. -- Richard Huxton Archonet Ltd -- Sent via pgsql-general mail