Re: [GENERAL] attempted to lock invisible tuple - PG 8.4.1

2009-10-05 Thread Stuart Bishop
On Mon, Oct 5, 2009 at 11:00 PM, Alvaro Herrera wrote: Stuart Bishop wrote: On Mon, Oct 5, 2009 at 4:22 PM, Alban Hertroys wrote: > A similar issue was discussed just recently here: > http://archives.postgresql.org/pgsql-general/2009-09/msg01219.php > > That issue involved cursors though

Re: [GENERAL] numeric field overflow

2009-10-05 Thread Scott Marlowe
On Tue, Oct 6, 2009 at 12:20 AM, Nurzhan Kirbassov wrote: > Good day. > > I may be misunderstanding the NUMERIC type description in the manual, > so can anyone please help me with this? Description says: > > "The scale of a numeric is the count of decimal digits in the > fractional part, to the ri

Re: [GENERAL] numeric field overflow

2009-10-05 Thread Christophe Pettus
On Oct 5, 2009, at 11:20 PM, Nurzhan Kirbassov wrote: So, does the precision part of the numeric type really means number of digits to the left of the decimal point, or what ? NUMERIC is behaving as documented. The way to think of it is when you are inserting: INSERT INTO test.te

[GENERAL] numeric field overflow

2009-10-05 Thread Nurzhan Kirbassov
Good day. I may be misunderstanding the NUMERIC type description in the manual, so can anyone please help me with this? Description says: "The scale of a numeric is the count of decimal digits in the fractional part, to the right of the decimal point. The precision of a numeric is the total count

[GENERAL] Triggers and SQL

2009-10-05 Thread Yadisnel Galvez Velazquez
How I cant optain de SQL (if is posible) of any STATEMENT in an AFTER Trigger Function in C? -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

[GENERAL] Fatal error on start

2009-10-05 Thread Andrew Bartley
does anyone know what this is? Trying to start postgres version: PostgreSQL 8.3.7 on i486-pc-linux-gnu, compiled by GCC gcc-4.3.real (Debian 4.3.2-1.1) 4.3.2 2009-10-06 15:17:21 EST 3757 FATAL: XX000: could not open directory "pg_tblspc": Unknown error 530 2009-10-06 15:17:21 EST 3757 LOCATION

Re: [GENERAL] Errors regarding transporting database using pg_dump

2009-10-05 Thread Greg Stark
On Mon, Oct 5, 2009 at 7:34 AM, Martijn van Oosterhout wrote: > That said, why are you doint this anyway. A better solution may be to > install a trusted language (like plperlu or plpython) and do the system > call from there. > If you just want system(3) you might as well use plsh... -- greg

Re: [GENERAL] Errors regarding transporting database using pg_dump

2009-10-05 Thread Adrian Klaver
On Monday 05 October 2009 10:36:04 am Chun-fan Ivan Liao wrote: > Thank you, Oosterhout and Lane. > > The code is not written by me. The previous DB admin is not reachable. > I was just the present-stage DB (newbie) admin, and I never touched > PostgreSQL before :( > > On Mon, Oct 5, 2009 at 10

Re: [GENERAL] ERROR: column "id" inherits conflicting default values

2009-10-05 Thread Tom Lane
I wrote: > I guess we're going to have to rewrite that code to not store the cooked > defaults in string form. If they were node trees then equal() would do > the right thing. The attached patch should fix this. regards, tom lane Index: src/backend/commands/tablecmds.c =

Re: [GENERAL] How useful is the money datatype?

2009-10-05 Thread John R Pierce
Guy Rouillier wrote: The IBM implementation provided language libraries (usually COBOL) that also supported packed decimal, so precision was maintained throughout the entire application stack. IBM 360/370/390/etcetc/Zsystem has BCD op codes in the instruction set architecture. microcoded

Re: [GENERAL] How useful is the money datatype?

2009-10-05 Thread Guy Rouillier
Bruce Momjian wrote: Guy Rouillier wrote: Christophe Pettus wrote: On Oct 4, 2009, at 7:09 PM, Guy Rouillier wrote: There is no reason why PG could not support packed decimal. Is that not NUMERIC? No, that is not NUMERIC. All numeric types are stored as binary representations. Packed decim

Re: [GENERAL] 8.3.6 build error on Debian Lenny

2009-10-05 Thread donald63
Tom Lane-2 wrote: > > Josh Trutwin writes: >> Hi - I'm trying to build 8.3.6 on a box recently upgraded from Sarge >> to Lenny and I get the following error during compile: > >> make[4]: Entering directory >> `/backup/source/db/postgresql-8.3.6/src/backend/utils/adt' gcc -O2 >> -Wall -Wmissin

Re: [GENERAL] Version upgrade with tablespace

2009-10-05 Thread Bill Todd
Ignore that. I now see that I must edit the dump file to change the directory for the tablespace before running the restore. Bill Bill Todd wrote: I am new PostgreSQL and am about to attempt to upgrade from 8.3 to 8.4.1. I believe I understand the procedure except for my tablespace. My datab

[GENERAL] Documentation on standard conforming strings?

2009-10-05 Thread Preston de Guise
Hi, I don't yet properly understand the conforming strings implementation that came in 8.3 The manual (to me at least) has been a little imprecise in describing the implications for correctly inserting data with this enabled without getting back a plethora of warnings, or having the inser

Re: [GENERAL] Programming interfaces when using MD5 authentication

2009-10-05 Thread Preston de Guise
On 02/10/2009, at 23:47 , Tom Lane wrote: Preston de Guise writes: Using Perl to program interfaces to PostgreSQL, and had previously misunderstood how md5 password authentication worked, so I'm now re- doing it, but struggling to find out how DBD::Pg might be used to actually authenticate by

Re: [GENERAL] Limiting the impact of schema additions/poor queries made by clients on production machines

2009-10-05 Thread Steve Atkins
On Oct 5, 2009, at 8:04 AM, Joshua Berry wrote: Our shop uses postgres for a dozen installations. The applications have some realtime performance requirements, and are just good enough to function properly. The problem is that the clients (owners of the production servers) are using the same se

Re: [GENERAL] Limiting the impact of schema additions/poor queries made by clients on production machines

2009-10-05 Thread Scott Marlowe
On Mon, Oct 5, 2009 at 9:04 AM, Joshua Berry wrote: > Our shop uses postgres for a dozen installations. The applications > have some realtime performance requirements, and are just good enough > to function properly. The problem is that the clients (owners of the > production servers) are using th

[GENERAL] Wishlist of PL/Perl Enhancements for PostgreSQL 8.5

2009-10-05 Thread Tim Bunce
I'm planning to work with Andrew Dunstan on some enhancements to PL/Perl for PostgreSQL 8.5. I've written up some initial proposals here: http://blog.timbunce.org/2009/10/05/wishlist-of-plperl-enhancements-for-postgresql-8-5/ I'd welcome any feedback on those, and any other suggestions you ma

[GENERAL] Version upgrade with tablespace

2009-10-05 Thread Bill Todd
I am new PostgreSQL and am about to attempt to upgrade from 8.3 to 8.4.1. I believe I understand the procedure except for my tablespace. My database is in a tablespace named app. When I restore the database dump under 8.4.1 I assume that the tablespace will not be created automatically. Am I

Re: [GENERAL] How useful is the money datatype?

2009-10-05 Thread Sam Mason
On Mon, Oct 05, 2009 at 01:07:16PM -0700, Christophe Pettus wrote: > A quick check of the source code (src/backend/utils/adt/numeric.c) > shows it's base 1, each "digit" represented as an int16. I was going to note that in my post but thought it was needless detail; ah well, maybe next time

Re: [GENERAL] Limit of bgwriter_lru_maxpages of max. 1000?

2009-10-05 Thread Greg Smith
On Mon, 5 Oct 2009, Gerhard Wiesinger wrote: I think the problem is, that it is done on checkpoint time (whether spread or not). I should have been already be done by bgwriter. This is pretty simple: if you write things before checkpoint time, you'll end up re-writing a percentage of the blo

Re: [GENERAL] How useful is the money datatype?

2009-10-05 Thread Christophe Pettus
A quick check of the source code (src/backend/utils/adt/numeric.c) shows it's base 1, each "digit" represented as an int16. It's not strictly speaking BCD, but there's no computational difference. -- -- Christophe Pettus x...@thebuild.com -- Sent via pgsql-general mailing list (pgsq

Re: [GENERAL] How useful is the money datatype?

2009-10-05 Thread Bruce Momjian
Guy Rouillier wrote: > Christophe Pettus wrote: > > > > On Oct 4, 2009, at 7:09 PM, Guy Rouillier wrote: > >> There is no reason why PG could not support packed decimal. > > > > Is that not NUMERIC? > > No, that is not NUMERIC. All numeric types are stored as binary > representations. Packed

Re: [GENERAL] How useful is the money datatype?

2009-10-05 Thread Guy Rouillier
Christophe Pettus wrote: On Oct 4, 2009, at 7:09 PM, Guy Rouillier wrote: There is no reason why PG could not support packed decimal. Is that not NUMERIC? No, that is not NUMERIC. All numeric types are stored as binary representations. Packed decimal is not. Perhaps an example would cl

Re: [GENERAL] Limit of bgwriter_lru_maxpages of max. 1000?

2009-10-05 Thread Gerhard Wiesinger
On Mon, 5 Oct 2009, Greg Smith wrote: On Sun, 4 Oct 2009, Gerhard Wiesinger wrote: On Fri, 2 Oct 2009, Scott Marlowe wrote: I found that lowering checkpoint completion target was what helped. Does that seem counter-intuitive to you? I set it to 0.0 now. If you set that to 0.0, the whol

Re: [GENERAL]

2009-10-05 Thread John R Pierce
233242661...@mtn.com.gh wrote: What are the general features and components of PostgreSQL http://www.postgresql.org/docs/current/static/index.html -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/

[GENERAL]

2009-10-05 Thread 233242661002
NOTE: This e-mail message is subject to the MTN Ghana email disclaimer see http://www.mtn.com.gh/disclaimer/ What are the general features and components of PostgreSQL -- Sent via pg

Re: [GENERAL] Errors regarding transporting database using pg_dump

2009-10-05 Thread Chun-fan Ivan Liao
Thank you, Oosterhout and Lane. The code is not written by me. The previous DB admin is not reachable. I was just the present-stage DB (newbie) admin, and I never touched PostgreSQL before :( On Mon, Oct 5, 2009 at 10:34 PM, Martijn van Oosterhout wrote: > > On Mon, Oct 05, 2009 at 06:07:44P

Re: [GENERAL] Limit of bgwriter_lru_maxpages of max. 1000?

2009-10-05 Thread Greg Smith
On Sun, 4 Oct 2009, Gerhard Wiesinger wrote: On Fri, 2 Oct 2009, Scott Marlowe wrote: I found that lowering checkpoint completion target was what helped. Does that seem counter-intuitive to you? I set it to 0.0 now. If you set that to 0.0, the whole checkpoing spreading logic doesn't app

Re: [GENERAL] Postgres won't start. Nothing in the log.

2009-10-05 Thread Andreas Kretschmer
Tim Uckun wrote: > Unfortunately there is nothing anywhere telling me what the problem > is. The log file is empty, there is nothing in the /var/log/messages > or /var/log/syslog either. The only output I get is this. > > * Starting PostgreSQL 8.3 database server > * The PostgreSQL server faile

Re: [GENERAL] Looking for interest in an Irish PUG

2009-10-05 Thread Joshua D. Drake
On Mon, 2009-10-05 at 17:16 +0100, Raymond O'Donnell wrote: > Hello all, and apologies for the cross-posting. > > I'm looking to see if there is any interest in starting an Irish > PostgreSQL user group. > > A couple of people have been in touch privately from time to time, > expressing interest

[GENERAL] Looking for interest in an Irish PUG

2009-10-05 Thread Raymond O'Donnell
Hello all, and apologies for the cross-posting. I'm looking to see if there is any interest in starting an Irish PostgreSQL user group. A couple of people have been in touch privately from time to time, expressing interest in such a group, so I'm like to see if there are enough people interested

Re: [GENERAL] attempted to lock invisible tuple - PG 8.4.1

2009-10-05 Thread Alvaro Herrera
Stuart Bishop wrote: > On Mon, Oct 5, 2009 at 4:22 PM, Alban Hertroys > wrote: > > A similar issue was discussed just recently here: > > http://archives.postgresql.org/pgsql-general/2009-09/msg01219.php > > > > That issue involved cursors though (and a serializable isolation level, but > > you ha

[GENERAL] Limiting the impact of schema additions/poor queries made by clients on production machines

2009-10-05 Thread Joshua Berry
Our shop uses postgres for a dozen installations. The applications have some realtime performance requirements, and are just good enough to function properly. The problem is that the clients (owners of the production servers) are using the same server/database for customizations that are causing pr

Re: [GENERAL] Errors regarding transporting database using pg_dump

2009-10-05 Thread Tom Lane
Chun-fan Ivan Liao writes: > STATEMENT: CREATE FUNCTION "system"(cstring) RETURNS integer > AS '/lib/libc.so.7', 'system' > LANGUAGE c STRICT; This hack doesn't work any more --- not that it was ever considered supported or recommended. If you really need such a thing, I

Re: [GENERAL] attempted to lock invisible tuple - PG 8.4.1

2009-10-05 Thread Stuart Bishop
On Mon, Oct 5, 2009 at 4:22 PM, Alban Hertroys wrote: > On 5 Oct 2009, at 8:58, Stuart Bishop wrote: > >> I'm running our products test suite against PostgreSQL 8.4.1. The test >> suite runs fine against 8.3.7. >> >> With 8.4.1, some of our tests are failing with the exception >> 'attempted to loc

Re: [GENERAL] Errors regarding transporting database using pg_dump

2009-10-05 Thread Martijn van Oosterhout
On Mon, Oct 05, 2009 at 06:07:44PM +0800, Chun-fan Ivan Liao wrote: > I used pg_dump to dump the old database out and psql to store the database > into the new server, but the following two errors occurred: > > ERROR: incompatible library "/lib/libc.so.6": missing magic block > HINT: Extension l

Re: [GENERAL] Postgres won't start. Nothing in the log.

2009-10-05 Thread Martin Gainty
did you install (i should say register) postgres and pg_ctl binaries as postgres user are you executing postgres and pg_ctl binaries as postgres user ? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese N

[GENERAL] Errors regarding transporting database using pg_dump

2009-10-05 Thread Chun-fan Ivan Liao
I want to transport the database server to a new machine. The OS and the PostgreSQL version of the old machine: FreeBSD 6.1-RELEASE & psql 8.1.3 And that of the new machine: FreeBSD 7.2-RELEASE & psql 8.4.0 (Using "uname -a" "psql -U pgsql" to check the version) I used pg_dump to dump the old d

Re: [GENERAL] How to have ant's task insert special chars appropriately?

2009-10-05 Thread agostonbejo
Thanks, you were right - actually the problem was somewhere else. During the build I had the sql files copied over to another location, feeding them to ant's -- and it was there actually where the encodings got mixed up. (Needless to say, I was looking at the original file and thought it was t

Re: [GENERAL] Postgres won't start. Nothing in the log.

2009-10-05 Thread Devrim GÜNDÜZ
On Mon, 2009-10-05 at 17:39 +1300, Tim Uckun wrote: > Unfortunately there is nothing anywhere telling me what the problem > is. The log file is empty, there is nothing in the /var/log/messages > or /var/log/syslog either. The only output I get is this. > > * Starting PostgreSQL 8.3 database serve

[GENERAL] object dependency workaround

2009-10-05 Thread Little, Douglas
Hello, We're migrating to Greenplum, and in our currently portfolio we base everything on views. In our prior system, we could alter tables and then refresh the views, but in PG/greenplum most alters are blocked because of the dependent objects. I understand that I can walk the pg_depends table

Re: [GENERAL] Postgres won't start. Nothing in the log.

2009-10-05 Thread Tom Lane
"Markus Wollny" writes: > pgsql-general-ow...@postgresql.org wrote: >> Unfortunately there is nothing anywhere telling me what the >> problem is. The log file is empty, there is nothing in the >> /var/log/messages or /var/log/syslog either. The only output >> I get is this. >> >> * Starting Postg

Re: [GENERAL] connection failure

2009-10-05 Thread Allan Kamau
Could it be that a connection may be invoking a newly recreated function rewritten in C that it had previously called before it's recreation? Allan. On Mon, Oct 5, 2009 at 3:06 PM, Miklosi Attila wrote: > > What does the message below mean? > > server closed the connection unexpectedly > This pr

Re: [GENERAL] connection failure

2009-10-05 Thread Sam Mason
On Mon, Oct 05, 2009 at 03:06:41PM +0200, Miklosi Attila wrote: > What does the message below mean? > > server closed the connection unexpectedly > This probably means the server terminated abnormally > before or while processing the request. It means the server disconnected from the client; as i

[GENERAL] connection failure

2009-10-05 Thread Miklosi Attila
What does the message below mean? server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. This message appears sometimes after i send a 'BEGIN' to the server and the processor load of the application goes up to 99%. T

Re: [GENERAL] Procedure for feature requests?

2009-10-05 Thread Sam Mason
On Mon, Oct 05, 2009 at 12:03:38AM +, Tim Landscheidt wrote: > Sam Mason wrote: > >Tim Landscheidt wrote: > >> "generate_series(A, B, C)" can also > >> be written as "A + generate_series(0, (C - B) / C) * C" > > > > If you can figure out the limit then it seems easy, > > though I'm not sure ho

Re: [GENERAL] Postgres won't start. Nothing in the log.

2009-10-05 Thread Thom Brown
2009/10/5 Markus Wollny > Hi! > > pgsql-general-ow...@postgresql.org wrote: > > Unfortunately there is nothing anywhere telling me what the > > problem is. The log file is empty, there is nothing in the > > /var/log/messages or /var/log/syslog either. The only output > > I get is this. > > > > *

Re: [GENERAL] attempted to lock invisible tuple - PG 8.4.1

2009-10-05 Thread Alban Hertroys
On 5 Oct 2009, at 8:58, Stuart Bishop wrote: I'm running our products test suite against PostgreSQL 8.4.1. The test suite runs fine against 8.3.7. With 8.4.1, some of our tests are failing with the exception 'attempted to lock invisible tuple'. The failures are repeatable - they crash every tim

Re: [GENERAL] Postgres won't start. Nothing in the log.

2009-10-05 Thread Markus Wollny
Hi! pgsql-general-ow...@postgresql.org wrote: > Unfortunately there is nothing anywhere telling me what the > problem is. The log file is empty, there is nothing in the > /var/log/messages or /var/log/syslog either. The only output > I get is this. > > * Starting PostgreSQL 8.3 database server >