Re: [BUGS] Problems with ENUM type manipulation in 9.1

2011-09-29 Thread depstein
Thanks everyone for the explanations. I posted a feature request for improved enum manipulation in psql-general. Dmitry Epstein | Developer Allied Testing www.alliedtesting.com We Deliver Quality. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscr

Re: [BUGS] Problems with ENUM type manipulation in 9.1

2011-09-28 Thread Tom Lane
Josh Kupershmidt writes: >> Excerpts from depstein's message of mié sep 28 07:21:17 -0300 2011: >>> Anyway, the procedure that we used (based on >>> http://en.dklab.ru/lib/dklab_postgresql_enum/) does the necessary >>> checks before removing enum values. > Not exactly; that code is rife with race

Re: [BUGS] Problems with ENUM type manipulation in 9.1

2011-09-28 Thread Merlin Moncure
On Wed, Sep 28, 2011 at 10:40 AM, Tom Lane wrote: > Alvaro Herrera writes: >> Excerpts from depstein's message of mié sep 28 07:21:17 -0300 2011: >>> ALTER TYPE ... ADD VALUE does not work inside transaction blocks, period, >>> whether they are executed as a multi-command string or one query at

Re: [BUGS] Problems with ENUM type manipulation in 9.1

2011-09-28 Thread Josh Kupershmidt
On Wed, Sep 28, 2011 at 10:51 AM, Alvaro Herrera wrote: > Excerpts from depstein's message of mié sep 28 07:21:17 -0300 2011: >> Anyway, the procedure that we used (based on >> http://en.dklab.ru/lib/dklab_postgresql_enum/) does the necessary >> checks before removing enum values. Not exactly; th

Re: [BUGS] Problems with ENUM type manipulation in 9.1

2011-09-28 Thread Tom Lane
Alvaro Herrera writes: > Excerpts from depstein's message of mié sep 28 07:21:17 -0300 2011: >> ALTER TYPE ... ADD VALUE does not work inside transaction blocks, period, >> whether they are executed as a multi-command string or one query at a time. >> Try it: > The reason it is not allowed is

Re: [BUGS] Problems with ENUM type manipulation in 9.1

2011-09-28 Thread Alvaro Herrera
Excerpts from depstein's message of mié sep 28 07:21:17 -0300 2011: > > -Original Message- > > From: Merlin Moncure [mailto:mmonc...@gmail.com] > > Sent: Tuesday, September 27, 2011 10:31 PM > > > 1. We can use ALTER TYPE to add enum values, but there is no matching > > command to remove v

Re: [BUGS] Problems with ENUM type manipulation in 9.1

2011-09-28 Thread Merlin Moncure
On Wed, Sep 28, 2011 at 5:21 AM, wrote: >> -Original Message- >> From: Merlin Moncure [mailto:mmonc...@gmail.com] >> Sent: Tuesday, September 27, 2011 10:31 PM >> > 1. We can use ALTER TYPE to add enum values, but there is no matching >> command to remove values, which makes this an incom

Re: [BUGS] Problems with ENUM type manipulation in 9.1

2011-09-28 Thread depstein
> -Original Message- > From: Merlin Moncure [mailto:mmonc...@gmail.com] > Sent: Tuesday, September 27, 2011 10:31 PM > > 1. We can use ALTER TYPE to add enum values, but there is no matching > command to remove values, which makes this an incomplete solution. > > you can manually delete fr

Re: [BUGS] Problems with ENUM type manipulation in 9.1

2011-09-27 Thread Merlin Moncure
On Tue, Sep 27, 2011 at 5:06 AM, wrote: > Hello, > > I've encountered some problems with the updated ENUM in PosgreSQL 9.1: > > 1. We can use ALTER TYPE to add enum values, but there is no matching command > to remove values, which makes this an incomplete solution. you can manually delete from

Re: [BUGS] Problems with ENUM type manipulation in 9.1

2011-09-27 Thread Kevin Grittner
wrote: > I've encountered some problems with the updated ENUM in PosgreSQL > 9.1: No matter how I tilt my head, I can't see any of those issues as bugs. You have two feature requests and a question about how to work around problems you're having with direct modifications to the system tables.

Re: [BUGS] Problems with adding a is not null to a query.

2011-01-17 Thread Tom Lane
Tim Uckun writes: >> As I've stated repeatedly, your next move needs to be to increase the >> stats target, at least for that column if not globally. > Ok How do I go about doing this. If you want to do it globally for the whole database: change default_statistics_target in postgresql.conf. If

Re: [BUGS] Problems with adding a is not null to a query.

2011-01-17 Thread Tim Uckun
> > As I've stated repeatedly, your next move needs to be to increase the > stats target, at least for that column if not globally.  You probably > don't need to have it know about every last domain id, but you need to > have it know about enough that it realizes that domains not included in > the

Re: [BUGS] Problems with adding a is not null to a query.

2011-01-17 Thread Tom Lane
Tim Uckun writes: >> Am I right in guessing that pg_stats.n_distinct is much too low for >> the domain_id column? > the domain_id is in the topical urls. A select count of domains shows > that there are 700 domains, the pg_stats shows 170 which seems kind of > low but maybe is not out of bounds b

Re: [BUGS] Problems with adding a is not null to a query.

2011-01-17 Thread Tim Uckun
> With a table that large, you're probably going to need a larger stats > target in order to get reasonable estimates for low-frequency values. > Am I right in guessing that pg_stats.n_distinct is much too low for > the domain_id column? the domain_id is in the topical urls. A select count of doma

Re: [BUGS] Problems with adding a is not null to a query.

2011-01-17 Thread Tom Lane
Tim Uckun writes: > relname | pg_relation_size | reltuples | relpages > +--+-+-- > consolidated_urls | 1303060480 | 1.80192e+06 | 159065 > consolidated_urls_pkey |114745344 | 1.80192e+06 |14007

Re: [BUGS] Problems with adding a is not null to a query.

2011-01-17 Thread Robert Haas
On Mon, Jan 17, 2011 at 8:23 AM, Tim Uckun wrote: >> Hmm.  What do you get for: >> >> SELECT relname, pg_relation_size(oid), reltuples, relpages FROM >> pg_class WHERE relname IN ('consolidated_urls', >> 'consolidated_urls_pkey'); > >        relname         | pg_relation_size |  reltuples  | relpa

Re: [BUGS] Problems with adding a is not null to a query.

2011-01-17 Thread Tim Uckun
> > Hmm.  What do you get for: > > SELECT relname, pg_relation_size(oid), reltuples, relpages FROM > pg_class WHERE relname IN ('consolidated_urls', > 'consolidated_urls_pkey'); > relname | pg_relation_size | reltuples | relpages +--+-

Re: [BUGS] Problems with adding a is not null to a query.

2011-01-17 Thread Robert Haas
On Sun, Jan 16, 2011 at 5:47 PM, Tim Uckun wrote: >> Hmm, autovacuum *should* have been keeping track of things for you, >> but it might still be worth doing a manual ANALYZE against that table >> to see if the estimated rowcount changes.  If not, you'll need to raise >> the statistics target for

Re: [BUGS] Problems with adding a is not null to a query.

2011-01-16 Thread Tim Uckun
> > Hmm, autovacuum *should* have been keeping track of things for you, > but it might still be worth doing a manual ANALYZE against that table > to see if the estimated rowcount changes.  If not, you'll need to raise > the statistics target for that column (and again ANALYZE). The analyze finish

Re: [BUGS] Problems with adding a is not null to a query.

2011-01-16 Thread Tim Uckun
> Hmm, autovacuum *should* have been keeping track of things for you, > but it might still be worth doing a manual ANALYZE against that table > to see if the estimated rowcount changes.  If not, you'll need to raise > the statistics target for that column (and again ANALYZE). > I started a manual

Re: [BUGS] Problems with adding a is not null to a query.

2011-01-16 Thread Tom Lane
Tim Uckun writes: >> Possibly the table's never been ANALYZEd ... do you have autovacuum >> enabled? > I do have autovacuum enabled and I am running 8.4 Hmm, autovacuum *should* have been keeping track of things for you, but it might still be worth doing a manual ANALYZE against that table to se

Re: [BUGS] Problems with adding a is not null to a query.

2011-01-15 Thread Tim Uckun
> > Possibly the table's never been ANALYZEd ... do you have autovacuum > enabled?  If it has been analyzed reasonably recently, then it might be > necessary to crank up the statistics target to get a better estimate. > It's difficult to give detailed advice when you haven't mentioned what > PG ver

Re: [BUGS] Problems with adding a is not null to a query.

2011-01-15 Thread pasman pasmański
Both queries use the same row's estimation and cost is comparable. But execution time differs huge: 0.044s and 3100s. I think that the cost of backward index scan is too small. On 1/15/11, Tom Lane wrote: > Tim Uckun writes: >> I reported this in the pgsql-general list and was instructed to send

Re: [BUGS] Problems with adding a is not null to a query.

2011-01-15 Thread Tom Lane
Tim Uckun writes: > I reported this in the pgsql-general list and was instructed to send > the analaze outputs here. This isn't a bug, it's just a poor choice of plan based on a bad statistical estimate. The planner is estimating that there are 2643 rows having domain_id = 157, when actually the

Re: [BUGS] Problems with max_connections parameter

2010-12-14 Thread Robert Haas
On Mon, Dec 13, 2010 at 8:46 PM, Jorge Augusto Meira wrote: > Have something else I can do to reach the limit of the parameter > max_connections? > > This may be a bug? Well, I don't think you've really identified what's happening. Kevin and Tom both suggested possible explanations upthread. --

Re: [BUGS] Problems with max_connections parameter

2010-12-13 Thread Jorge Augusto Meira
Hi again Have something else I can do to reach the limit of the parameter max_connections? This may be a bug? Thanks Jorge On Mon, Dec 6, 2010 at 1:31 PM, Tom Lane wrote: > Jorge Augusto Meira writes: >> The error message was: >> "Erro Conexão: A tentativa de conexão falhou." >> or >> "Erro C

Re: [BUGS] Problems with max_connections parameter

2010-12-06 Thread Jorge Augusto Meira
Hi, Euler - How could the test program know? The test program after any operation (inser, tupdate or select) receive a message of postgres like OK or ERROR (Connection error: FATAL). - Are you using some delay between one test and another one? I would be a good idea, specially if you're restarti

Re: [BUGS] Problems with max_connections parameter

2010-12-06 Thread Euler Taveira de Oliveira
Jorge Augusto Meira escreveu: > The test program is running in other 5 client machines. > In the logs of my test program, the max_connection parameter limit is > never reached. > How could the test program know? Indeed it doesn't. Are you using some delay between one test and another one? I would

Re: [BUGS] Problems with max_connections parameter

2010-12-06 Thread Jorge Augusto Meira
Hi Tom The test program is running in other 5 client machines. In the logs of my test program, the max_connection parameter limit is never reached. Regards Jorge On Mon, Dec 6, 2010 at 1:31 PM, Tom Lane wrote: > Jorge Augusto Meira writes: > > The error message was: > > "Erro Conexão: A tenta

Re: [BUGS] Problems with max_connections parameter

2010-12-06 Thread Tom Lane
Jorge Augusto Meira writes: > The error message was: > "Erro Conexão: A tentativa de conexão falhou." > or > "Erro Conexão: FATAL: connection limit exceeded for non-superusers" Hmm ... I can't find the first of those anywhere in the 8.4 message lists; but the second one definitely says that you *

Re: [BUGS] Problems with max_connections parameter

2010-12-06 Thread Jorge Augusto Meira
Hi Thanks for the answers. Really, I didn't showed you basic informations. I used the PostgreSQL 8.4. The server configuration was: Processor: Intel Xeon Processor W3570 Quad Core Processor Mem: 20GB Network Interface: Gigabit HD: 12 x 1 TB (RAID1+0) OS: Debian

Re: [BUGS] Problems with max_connections parameter

2010-12-03 Thread Kevin Grittner
Euler Taveira de Oliveira wrote: > Talking about your problem, are you sure you're not reaching > max_connections? It also strikes me that from the minimal information given, it might be possible that pid numbers or port numbers are wrapping around before the OS is ready to allow re-use. I h

Re: [BUGS] Problems with max_connections parameter

2010-12-03 Thread Euler Taveira de Oliveira
Jorge Augusto Meira escreveu: > This is a bug? > You don't provide sufficient information. PostgreSQL version? Error message? Talking about your problem, are you sure you're not reaching max_connections? Did you check the logs? -- Euler Taveira de Oliveira http://www.timbira.com/ -- Sent

Re: [BUGS] problems instaling

2008-07-08 Thread gildas prime
You have a previous postgres user installed in your computer, you can delete it (if no longer used…) with the command : net.exe user postgres /delete _ De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de filipe moreira Envoyé : mardi 8 juillet 2008 01:06 À : pgsql-bugs@postgre

Re: [BUGS] problems compiling in 64 bits

2008-05-31 Thread Tom Lane
"Gerardo Antonio" <[EMAIL PROTECTED]> writes: > I am trying to compile Postgres 8.1.9 in the following Linux version: > Linux version 2.6.9-34.EL ([EMAIL PROTECTED]) (gcc version > 3.4.5 20051201 (Red Hat 3.4.5-2)) > but I get a bunch of errors saying " > i386 architecture of input file > `../.

Re: [BUGS] Problems with UTF8 in PSQL

2006-07-12 Thread REISS Thomas DSIC DESP
Hello, When I experience the problem, the current Linux locale on my server is [EMAIL PROTECTED] Psql works fine if I change the current locale (by setting the LANG shell variable) to [EMAIL PROTECTED] I would be glad if psql may work fine without changing the LANG variable in the current se

Re: [BUGS] Problems with "-w" option on pg_ctl.exe running as a windows

2004-12-21 Thread Bruce Momjian
Looking at the two patches I just applied I think it might fix your problem. The problem was actually the general problem of pg_ctl -w start not returning a non-zero. --- Steve McWilliams wrote: > Hello, > > I tried sending

Re: [BUGS] problems with OS X and beta 2

2004-09-10 Thread Theodore Petrosky
How's this one... I realized that the machine I was testing on was running '[EMAIL PROTECTED]'.. so I quit it.. Lo and behold beta 2 compiled and made (with make check) just fine. Thanks Ted --- Tom Lane <[EMAIL PROTECTED]> wrote: > Theodore Petrosky <[EMAIL PROTECTED]> writes: > > Did I miss

Re: [BUGS] problems with OS X and beta 2

2004-09-10 Thread Theodore Petrosky
I downloaded the beta 2 source, ./configure --with-rendezvous make no other configurations... I did this same configuration on the beta 1 and it was fine. (other than a make check that we had to add an env line..) I am going to try again by throwing away the folder that starting fresh... Ted

Re: [BUGS] problems with OS X and beta 2

2004-09-10 Thread Tom Lane
Theodore Petrosky <[EMAIL PROTECTED]> writes: > Did I miss something that I should so to make 8.0beta2 > for Mac OS X. Last time I tried it (which was a couple weeks back), our CVS tip built perfectly cleanly on OS X. Other people report success too, modulo that silly minus-zero bit in one regres

Re: [BUGS] PROBLEMS!!!

2004-08-06 Thread Kris Jurka
On Fri, 30 Jul 2004, [iso-8859-1] liz gonzalez wrote: > Dear Sr. or Madam, > > I am writting to you because I am having problems with > the configuration of PostgreSQL v. 7.4 on LINUX, I > want to configurate it in JAVA , I set: > > $./configure --with-java > > checking whether to build Java

Re: [BUGS] Problems renaming referencing column

2004-07-17 Thread Tom Lane
"Alexander M. Pravking" <[EMAIL PROTECTED]> writes: > In 7.4.3, if I rename a column which references another table, > constraint trigger fails on update or delete from main table. The following patch (against 7.4.*) appears to fix this problem. regards, tom lane Index: t

Re: [BUGS] Problems renaming referencing column

2004-07-17 Thread Tom Lane
"Alexander M. Pravking" <[EMAIL PROTECTED]> writes: > In 7.4.3, if I rename a column which references another table, > constraint trigger fails on update or delete from main table. > The problem goes away after re-creating the foreign key: Actually all you have to do is start a fresh backend. Th

Re: [BUGS] Problems renaming referencing column

2004-07-17 Thread Stephan Szabo
On Sat, 17 Jul 2004, Alexander M. Pravking wrote: > (sorry if it's a dup) > > In 7.4.3, if I rename a column which references another table, > constraint trigger fails on update or delete from main table. I think this probably has to do with the fact that the plan gets cached. If I close the con

Re: [BUGS] Problems with initdb

2003-12-13 Thread Chris Travers
Hi Denise, I ran into this problem for quite a while until I read the README that came with the PostgreSQL installation (under /usr/share/doc, I think). I highly recommend referring to this document. There could be a couple causes of your error, and since cygwin handles the Sysv IPC calls differ

Re: [BUGS] problems...

2003-07-05 Thread Tom Lane
"Alejandro Delu" <[EMAIL PROTECTED]> writes: > IpcSe > maphoreCreate: semget(key=3D1, num=3D17, 03600) failed: Function not implem= > ented > When I want to init the database, It does the previous error, what's wrong?= > ?? Looks like your kernel doesn't have SysV shared memory support enabled. Th

Re: [BUGS] Problems with insert rule called from plpython

2003-02-14 Thread Tom Lane
Pavel Hanak <[EMAIL PROTECTED]> writes: > Now calling "select testfun()" shows this fatal error: >FATAL: SPI: improper call to spi_dest_setup Hm, I'm glad I put in that test --- it exposed a problem. Here is the patch for 7.3. regards, tom lane *** src/backend/exec

Re: [BUGS] Problems with select chaining using INTERSECT

2002-06-13 Thread Stephan Szabo
On Thu, 13 Jun 2002, Michael Beckstette wrote: > Version: PostgreSQL 7.1.2 on sparc-sun-solaris2.5.1, compiled by GCC 2.95 > > Hi, when using SELECT queries chained by INTERSECT i get confused about the > behavour of the INTERSECT operation. I try to outline this with the following > examples.

Re: [BUGS] Problems with select chaining using INTERSECT

2002-06-13 Thread Tom Lane
"Michael Beckstette" <[EMAIL PROTECTED]> writes: > Version: PostgreSQL 7.1.2 on sparc-sun-solaris2.5.1, compiled by GCC 2.95 > Hi, when using SELECT queries chained by INTERSECT i get confused about the > behavour of the INTERSECT operation. Nested INTERSECT and EXCEPT queries are broken in 7.1.*

Re: [BUGS] Problems with my server...

2002-01-24 Thread Tom Lane
"Paulo Jorge Gomes Ferreira" <[EMAIL PROTECTED]> writes: > I've got a problem in my PostgreSQL server. Anytime I issue some commands > (like vacuum...) I got the following message: > prescricoes=> vacuum; > ERROR: cannot find attribute 3 of relation pg_views What Postgres version are you runnin

Re: [BUGS] Problems with avg on interval data type

2001-05-18 Thread Tom Lane
[EMAIL PROTECTED] writes: > The query does an avg on an interval column and now gets the error: > ERROR: Bad interval external representation '0' Sorry about that :-(. A last-minute tightening of the allowed input formats for interval broke avg(interval), but you're the first one to notice. I

Re: [BUGS] Problems with rules

2000-11-14 Thread Gena Gurchonok
Hello > Long Description > The given code is destilled from a reallife DB. All attempts to define a rule which >automatically updates the column aenderungsdatum from table mitglieder on updates >failed. The result was every > time > psql:ruleerror:17: ERROR: query rewritten 10 times, may con

Re: [BUGS] Problems building on IRIX 6.x

2000-03-30 Thread Tom Lane
David Kaelbling <[EMAIL PROTECTED]> writes: >> Those all look like big problems, though. They might all have a >> single root cause ... hard to tell from here. > Can you suggest how I might track them down or gather enough information > that you could diagnose the problem? In all seriousness, I

Re: [BUGS] Problems building on IRIX 6.x

2000-03-30 Thread David Kaelbling
Peter Eisentraut wrote: > > On Wed, 29 Mar 2000, David Kaelbling wrote: > > > "info.c", line 2142: warning(1551): variable "htbl_stmt" is used before > > its value is set > > > There were some "pointless comparison of unsigned integer with zero" > > messages too. The linker also whined because

Re: [BUGS] Problems building on IRIX 6.x

2000-03-30 Thread David Kaelbling
Tom Lane wrote: > > David, 6.5.2 is pretty much ancient history for us. Some of the > problems you mention have been addressed in current sources, but > I'm not sure if they all have been. Yes, sorry -- that was a typo. I was building 6.5.3. > > I also had some regression failures: > > - o

Re: [BUGS] Problems building on IRIX 6.x

2000-03-30 Thread Peter Eisentraut
On Wed, 29 Mar 2000, David Kaelbling wrote: > "info.c", line 2142: warning(1551): variable "htbl_stmt" is used before > its value is set > There were some "pointless comparison of unsigned integer with zero" > messages too. The linker also whined because fmgr_pl_finfo is multiply > defined, as

Re: [BUGS] Problems building on IRIX 6.x

2000-03-29 Thread Tom Lane
David Kaelbling <[EMAIL PROTECTED]> writes: > I built postgresql 6.5.2 for SGI IRIX 6.x systems, and ran into a few > problems. I've have diffs if anyone needs them, but they all boil down > to files in src/interfaces/odbc that use C++ comments in C code. David, 6.5.2 is pretty much ancient hist