Re: [BUGS] Introducing floating point cast into filter drastically changes row estimate

2012-11-06 Thread Merlin Moncure
On Wed, Oct 24, 2012 at 5:40 PM, Merlin Moncure wrote: > On Wed, Oct 24, 2012 at 3:51 PM, Merlin Moncure wrote: >> On Wed, Oct 24, 2012 at 3:33 PM, Tom Lane wrote: >>> Merlin Moncure writes: >>>> Yeah -- I have a case where a large number of joins are hap

Re: [BUGS] Introducing floating point cast into filter drastically changes row estimate

2012-10-24 Thread Merlin Moncure
On Wed, Oct 24, 2012 at 3:51 PM, Merlin Moncure wrote: > On Wed, Oct 24, 2012 at 3:33 PM, Tom Lane wrote: >> Merlin Moncure writes: >>> Yeah -- I have a case where a large number of joins are happening that >>> have a lot of filtering based on expressions and thing

Re: [BUGS] Introducing floating point cast into filter drastically changes row estimate

2012-10-24 Thread Merlin Moncure
On Wed, Oct 24, 2012 at 3:33 PM, Tom Lane wrote: > Merlin Moncure writes: >> Yeah -- I have a case where a large number of joins are happening that >> have a lot of filtering based on expressions and things like that. > > Might be worth your while to install some indexes

Re: [BUGS] Introducing floating point cast into filter drastically changes row estimate

2012-10-24 Thread Merlin Moncure
On Wed, Oct 24, 2012 at 2:26 PM, Tom Lane wrote: > Merlin Moncure writes: >> The following query runs fine: it estimates the returned rows pretty wel: >> postgres=# explain analyze select * from foo where i > 100 and i < 1; > >> ...but if you introduce a float

[BUGS] Re: Introducing floating point cast into filter drastically changes row estimate

2012-10-24 Thread Merlin Moncure
On Wed, Oct 24, 2012 at 10:06 AM, Merlin Moncure wrote: > I was chasing down a query that ran fine in 8.1 but had an near > infinite runtime in 9.2. It turned out to be from a bad filter > estimate that is surprisingly simple to reproduce: Testing some more it turns out that this isn&#

[BUGS] Introducing floating point cast into filter drastically changes row estimate

2012-10-24 Thread Merlin Moncure
I was chasing down a query that ran fine in 8.1 but had an near infinite runtime in 9.2. It turned out to be from a bad filter estimate that is surprisingly simple to reproduce: postgres=# create table foo(i int); CREATE TABLE postgres=# insert into foo select 1000 + (v/200) from generate_series(

Re: [BUGS] BUG #7620: array_to_json doesn't support heterogeneous arrays

2012-10-24 Thread Merlin Moncure
On Wed, Oct 24, 2012 at 2:21 AM, Craig Ringer wrote: > On 10/24/2012 07:32 AM, gha...@gmail.com wrote: >> The following bug has been logged on the website: >> >> Bug reference: 7620 >> Logged by: Greg Hazel >> Email address: gha...@gmail.com >> PostgreSQL version: 9.2.1 >> Opera

Re: [BUGS] BUG #7620: array_to_json doesn't support heterogeneous arrays

2012-10-23 Thread Merlin Moncure
On Tue, Oct 23, 2012 at 8:05 PM, Greg Hazel wrote: > On Oct 23, 2012, at 6:03 PM, Merlin Moncure wrote: > >> On Tue, Oct 23, 2012 at 6:32 PM, wrote: >>> The following bug has been logged on the website: >>> >>> Bug reference: 7620 >>>

Re: [BUGS] BUG #7620: array_to_json doesn't support heterogeneous arrays

2012-10-23 Thread Merlin Moncure
On Tue, Oct 23, 2012 at 6:32 PM, wrote: > The following bug has been logged on the website: > > Bug reference: 7620 > Logged by: Greg Hazel > Email address: gha...@gmail.com > PostgreSQL version: 9.2.1 > Operating system: Amazon Linux > Description: > > array_to_json(ARRAY['f

Re: [BUGS] BUG #6489: Alter table with composite type/table

2012-08-29 Thread Merlin Moncure
On Wed, Aug 29, 2012 at 10:44 AM, Chris Travers wrote: >> I think there's a lot of circumstantial >> support for that argument; consider the case of plpgsql declared >> record variables for example...what happens to them? > > > Again, the question is simply this: > > Are the table constraints for

Re: [BUGS] BUG #6489: Alter table with composite type/table

2012-08-29 Thread Merlin Moncure
Pavelic wrote: >> >> On 13.3.2012. 20:49, Merlin Moncure wrote: >> >>> I personally think it's an oversight. This was just discussed a >> >>> couple of days ago here: >> >>> >> >>> http://postgresql.1045698.n5.nabble.com/Alte

Re: [BUGS] BUG #6489: Alter table with composite type/table

2012-08-28 Thread Merlin Moncure
On Mon, Aug 27, 2012 at 9:40 PM, Bruce Momjian wrote: > On Wed, Mar 14, 2012 at 07:19:14PM +0100, Rikard Pavelic wrote: >> On 13.3.2012. 20:49, Merlin Moncure wrote: >> > I personally think it's an oversight. This was just discussed a >> > couple of days ago here

Re: [BUGS] server crash with "process 22821 releasing ProcSignal slot 32, but it contains 0"

2012-08-09 Thread Merlin Moncure
On Tue, Jun 26, 2012 at 12:09 PM, Merlin Moncure wrote: > On Tue, Jun 26, 2012 at 12:02 PM, Tom Lane wrote: >> Merlin Moncure writes: >>> I suspect (but haven't had time to prove and may not for several days >>> -- unfortunately going on vacation momentarily) tha

Re: [BUGS] server crash with "process 22821 releasing ProcSignal slot 32, but it contains 0"

2012-06-26 Thread Merlin Moncure
On Tue, Jun 26, 2012 at 12:02 PM, Tom Lane wrote: > Merlin Moncure writes: >> I suspect (but haven't had time to prove and may not for several days >> -- unfortunately going on vacation momentarily) that this might be >> caused by pl/sh. > > Hm.  The reported

Re: [BUGS] server crash with "process 22821 releasing ProcSignal slot 32, but it contains 0"

2012-06-26 Thread Merlin Moncure
On Tue, Jun 26, 2012 at 9:19 AM, Merlin Moncure wrote: >> Ok, I'll look into reproducing the crash conditions.  Unfortunately >> this is a critical server and it crashed during a time sensitive >> process. I can schedule a maintenance window though but it will have >&

Re: [BUGS] server crash with "process 22821 releasing ProcSignal slot 32, but it contains 0"

2012-06-26 Thread Merlin Moncure
On Mon, Jun 25, 2012 at 10:03 AM, Merlin Moncure wrote: > On Mon, Jun 25, 2012 at 9:57 AM, Tom Lane wrote: >> Merlin Moncure writes: >>> 2012-06-25 09:08:08 CDT [postgres@ysanalysis_hes]: LOG:  could not >>> send data to client: Broken pipe >>> 2012-06-25 0

Re: [BUGS] server crash with "process 22821 releasing ProcSignal slot 32, but it contains 0"

2012-06-25 Thread Merlin Moncure
On Mon, Jun 25, 2012 at 9:57 AM, Tom Lane wrote: > Merlin Moncure writes: >> 2012-06-25 09:08:08 CDT [postgres@ysanalysis_hes]: LOG:  could not >> send data to client: Broken pipe >> 2012-06-25 09:08:10 CDT [postgres@ysanalysis_hes]: LOG:  unexpected >> EOF on client

[BUGS] server crash with "process 22821 releasing ProcSignal slot 32, but it contains 0"

2012-06-25 Thread Merlin Moncure
I got a crash on a production server this morning following during very heavy load. This is postgres 9.1.3 on Linux (going to 9.1.4 asap). I didn't catch a core dump it doesn't look like one would help anyways. Server is virtualized quad on vmware. Here is the log I have: 2012-06-25 09:07:45

Re: [BUGS] sequential scans that pick up only deleted records do not honor query cancel or timeout

2012-05-22 Thread Merlin Moncure
On Tue, May 22, 2012 at 4:08 PM, Tom Lane wrote: > Merlin Moncure writes: >> Basically, $subject says it all.  It's pretty easy to reproduce: >> delete all the records from a large table and execute any sequentially >> scanning query before autocvacuum comes around

[BUGS] sequential scans that pick up only deleted records do not honor query cancel or timeout

2012-05-22 Thread Merlin Moncure
Basically, $subject says it all. It's pretty easy to reproduce: delete all the records from a large table and execute any sequentially scanning query before autocvacuum comes around and cleans the table up; the query will be uncancellable. This can result in fairly pathological behavior in i/o co

Re: [BUGS] [GENERAL] Altering a table with a rowtype column

2012-03-20 Thread Merlin Moncure
On Tue, Mar 20, 2012 at 12:16 PM, Robert Haas wrote: > I think Tom's correct about what the right behavior would be if > composite types supported defaults, but they don't, never have, and > maybe never will.  I had a previous argument about this with Tom, and > lost, though I am not sure that any

Re: [BUGS] BUG #6489: Alter table with composite type/table

2012-03-13 Thread Merlin Moncure
On Sat, Feb 25, 2012 at 7:23 AM, wrote: > The following bug has been logged on the website: > > Bug reference:      6489 > Logged by:          Rikard Pavelic > Email address:      rikard.pave...@zg.htnet.hr > PostgreSQL version: 9.1.2 > Operating system:   Windows 7 > Description: > > I'm trying

Re: [BUGS] [GENERAL] Altering a table with a rowtype column

2012-03-08 Thread Merlin Moncure
On Wed, Mar 7, 2012 at 2:49 PM, Merlin Moncure wrote: > On a practical level, the error blocks nothing -- you can bypass it > trivially.   It's just an annoyance that prevents things that users > would like to be able to do with table row types.  So I'd argue to > remove the

Re: [BUGS] [GENERAL] Altering a table with a rowtype column

2012-03-07 Thread Merlin Moncure
On Wed, Mar 7, 2012 at 2:31 PM, Tom Lane wrote: > Merlin Moncure writes: >> On Wed, Mar 7, 2012 at 11:45 AM, Mike Blackwell >> wrote: >>> alter table a add column even_more_stuff boolean not null default false; > >> aha! that's not what you posted last ti

Re: [BUGS] [GENERAL] Altering a table with a rowtype column

2012-03-07 Thread Merlin Moncure
On Wed, Mar 7, 2012 at 1:17 PM, Mike Blackwell wrote: > As a followup, the workaround fails if there is data in the source table due > to the initial null value placed in the existing data rows. > > [wcs1459@aclnx-cisp01 ~]$ psql --port=5433 -e -f x > begin; > BEGIN > create table a ( >   id seria

Re: [BUGS] [GENERAL] Altering a table with a rowtype column

2012-03-07 Thread Merlin Moncure
On Wed, Mar 7, 2012 at 11:45 AM, Mike Blackwell wrote: > > works for me -- what version are you on? > > merlin > > -- > > [wcs1459@aclnx-cisp01 ~]$ psql --version > psql (PostgreSQL) 9.1.1 > contains support for command-line editing > > > [wcs1459@aclnx-cisp01 ~]$ cat x > create table a ( >  

Re: [BUGS] BUG #6424: Possible error in time to seconds conversion

2012-02-01 Thread Merlin Moncure
On Wed, Feb 1, 2012 at 10:00 AM, Tom Lane wrote: > o.bous...@krohne.com writes: >> Should the query > >> select >>   extract(epoch >>     from cast('2012-01-01 14:30:1' as >>              timestamp) - >>          cast('1970-01-01 0:0:0' as >>               timestamp))) - >>   extract(epoch >>    

Re: [BUGS] with hold cursor, cause function execute twice and wrong result

2011-12-29 Thread Merlin Moncure
2011/12/27 wcting163 : > postgres=# select version(); >   version > > --- >  PostgreSQL 9.0alpha5 on x86_64-unknown-linux-

Re: [BUGS] BUG #6365: Memory leak in insert and update

2011-12-29 Thread Merlin Moncure
On Thu, Dec 29, 2011 at 2:10 PM, Tom Lane wrote: > havasvolgyi.o...@gmail.com writes: >> The following bug has been logged on the website: >> Bug reference:      6365 >> Logged by:          Otto Havasvölgyi >> Email address:      havasvolgyi.o...@gmail.com >> PostgreSQL version: 9.1.2 >> Operating

Re: [BUGS] Can't use WITH in a PERFORM query in PL/pgSQL?

2011-10-20 Thread Merlin Moncure
On Thu, Oct 20, 2011 at 3:01 PM, Tom Lane wrote: > Pavel Stehule writes: >> I didn't design a PERFORM statement. There is two views - somebody >> from sybase's family know so SELECT without into is forwarded to >> client. This functionality is missing on Oracle's family. Is true so >> PERFORM sta

Re: [BUGS] Can't use WITH in a PERFORM query in PL/pgSQL?

2011-10-20 Thread Merlin Moncure
On Thu, Oct 20, 2011 at 2:28 AM, Pavel Stehule wrote: >> >> it would be really a good idea to allow SELECT without INTO in plpgsql. > > SELECT without INTO is useless in plpgsql - because you have to drop result. not if you're calling a function: select func(); merlin -- Sent via pgsql-bugs ma

Re: [BUGS] Can't use WITH in a PERFORM query in PL/pgSQL?

2011-10-19 Thread Merlin Moncure
On Wed, Oct 19, 2011 at 7:36 AM, Robert Haas wrote: > On Tue, Sep 6, 2011 at 1:43 PM, Bruce Momjian wrote: >> Well, this problem isn't isolated to WITH queries: >> >>        test=> do >>        $$begin >>        perform( >>        select 1 UNION ALL select 1 >>        ); >>        end$$; >>      

Re: [BUGS] BUG #6244: Ordering Problem

2011-10-11 Thread Merlin Moncure
On Mon, Oct 10, 2011 at 7:35 AM, Murilo - Perfilweb Informática wrote: > Hello, > My encoding is LATIN1, my collation is pt_BR > Thank You. > 2011/10/7 Merlin Moncure hm, LATIN1 is not a unicode supporting encoding, that might be problem. your database should probably be defined U

Re: [BUGS] BUG #6244: Ordering Problem

2011-10-07 Thread Merlin Moncure
On Fri, Oct 7, 2011 at 8:31 AM, Murilo Lobato wrote: > > The following bug has been logged online: > > Bug reference:      6244 > Logged by:          Murilo Lobato > Email address:      mur...@perfilweb.com.br > PostgreSQL version: 9.0.3 > Operating system:   Centos 5.5 > Description:        Order

Re: [BUGS] "no relation entry for relid 1"

2011-09-29 Thread Merlin Moncure
On Thu, Sep 29, 2011 at 3:26 PM, Peter Geoghegan wrote: > I've built Postgres from master, and found that the following fairly > simple query breaks: > > select count(*) > from > ( >        select >        schemaname >        from            pg_stat_user_tables >        order by        1 > ) sub >

Re: [BUGS] BUG #6232: hstore operator ? no longer uses indexes

2011-09-28 Thread Merlin Moncure
On Wed, Sep 28, 2011 at 3:50 PM, Pierre Ducroquet wrote: > > The following bug has been logged online: > > Bug reference:      6232 > Logged by:          Pierre Ducroquet > Email address:      p.p...@pinaraf.info > PostgreSQL version: 9.1.1 > Operating system:   Linux Debian, amd64 > Description:

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 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 r

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] BUG #6222: Segmentation fault on unlogged table

2011-09-26 Thread Merlin Moncure
On Mon, Sep 26, 2011 at 11:08 AM, Robert Haas wrote: > On Mon, Sep 26, 2011 at 11:40 AM, Robert Haas wrote: >> To check my work, I did this: >> >> --- a/src/backend/executor/execQual.c >> +++ b/src/backend/executor/execQual.c >> @@ -5003,6 +5003,7 @@ ExecQual(List *qual, ExprContext *econtext, bo

Re: [BUGS] BUG #6216: Calling PQconnectdbParams from C++ with a char**

2011-09-20 Thread Merlin Moncure
On Tue, Sep 20, 2011 at 11:05 AM, Lionel Elie Mamane wrote: > > The following bug has been logged online: > > Bug reference:      6216 > Logged by:          Lionel Elie Mamane > Email address:      lio...@mamane.lu > PostgreSQL version: 9.1.0 > Operating system:   Debian GNU/Linux > Description:  

Re: [BUGS] [GENERAL] Problem with the 9.1 one-click installer Windows7 64bit

2011-09-13 Thread Merlin Moncure
On Tue, Sep 13, 2011 at 1:44 AM, Thomas Kellerer wrote: > Merlin Moncure, 12.09.2011 21:28: >>> >>> With the second attempt, the installer again hang during initdb. Checking >>> the state using ProcessExplorer I could see that the installer script was >>> wa

Re: [BUGS] the '::' cast doesn't work in the FROM clause

2011-08-29 Thread Merlin Moncure
On Mon, Aug 29, 2011 at 9:00 AM, Kevin Grittner wrote: > Merlin Moncure wrote: > >> yeah, that's the correct way, but why does this work? >> select val from random() as val; > > If you look at the PostgreSQL reference docs for the SELECT > statement, a from_i

Re: [BUGS] the '::' cast doesn't work in the FROM clause

2011-08-29 Thread Merlin Moncure
On Mon, Aug 29, 2011 at 7:49 AM, Kevin Grittner wrote: > Alexey Klyukin  wrote: > >> The following statement produces an error message in PostgreSQL 8.4 >> - 9.2 (head): >> >> postgres=# select val from random()::integer as val; > >> The same statement rewritten with CAST AS works as expected: >>

Re: [BUGS] BUG #6087: Unnest with multidimensional arrays

2011-06-30 Thread Merlin Moncure
On Thu, Jun 30, 2011 at 5:44 AM, Maxim Boguk wrote: > > The following bug has been logged online: > > Bug reference:      6087 > Logged by:          Maxim Boguk > Email address:      maxim.bo...@gmail.com > PostgreSQL version: 9.0 > Operating system:   Linux > Description:        Unnest with multi

Re: [BUGS] could not read block XXXXX in file "base/YYYYY/ZZZZZZ": read only 160 of 8192 bytes

2011-06-17 Thread Merlin Moncure
2011/6/17 Антон Степаненко : >> >> I wonder if you are oversubscribing your memory, and are getting weird >> errors when reading data into memory because the pages can't be >> reserved to do that.  What happens when you enable overcommit and >> attempt to start the server? >> >> merlin > > In my fi

Re: [BUGS] could not read block XXXXX in file "base/YYYYY/ZZZZZZ": read only 160 of 8192 bytes

2011-06-17 Thread Merlin Moncure
2011/6/17 Антон Степаненко : > 17.06.2011, 21:24, "Merlin Moncure" : >> 2011/6/17 Антон Степаненко ;: >> >>>  17.06.2011, 20:19, "Merlin Moncure" ;: >>>>  On Fri, Jun 17, 2011 at 10:56 AM, Kevin Grittner >>>>  ;; wrote: >&g

Re: [BUGS] could not read block XXXXX in file "base/YYYYY/ZZZZZZ": read only 160 of 8192 bytes

2011-06-17 Thread Merlin Moncure
2011/6/17 Антон Степаненко : > > > 17.06.2011, 20:19, "Merlin Moncure" : >> On Fri, Jun 17, 2011 at 10:56 AM, Kevin Grittner >> ; wrote: >> >>>>  I still do not believe that this is hardware problem. >>>  How would an application caus

Re: [BUGS] could not read block XXXXX in file "base/YYYYY/ZZZZZZ": read only 160 of 8192 bytes

2011-06-17 Thread Merlin Moncure
On Fri, Jun 17, 2011 at 10:56 AM, Kevin Grittner wrote: >> I still do not believe that this is hardware problem. > > How would an application cause a bus error? unaligned memory access on risc maybe? what's this running on? merlin -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org

Re: [BUGS] BUG #5798: Some weird error with pl/pgsql procedure

2011-06-14 Thread Merlin Moncure
On Mon, Feb 21, 2011 at 6:31 PM, Tom Lane wrote: > I wrote: >> Ugh.  That quick little "ExecRemoveJunk" is a lot more dangerous than it >> looks.  I had actually looked at this before, but concluded it was OK >> because I couldn't reproduce the problem with a trigger in place. >> I guess I wasn't

Re: [BUGS] BUG #6051: wCTE query fail with wrong error text on a table with rules

2011-06-03 Thread Merlin Moncure
On Fri, Jun 3, 2011 at 10:42 AM, Jehan-Guillaume (ioguix) de Rorthais wrote: > > The following bug has been logged online: > > Bug reference:      6051 > Logged by:          Jehan-Guillaume (ioguix) de Rorthais > Email address:      j...@dalibo.com > PostgreSQL version: 9.1beta1 > Operating system

Re: [BUGS] PostgreSQL 9.1beta 1 Some domains not being able to be auto cast to their base type

2011-05-25 Thread Merlin Moncure
On Wed, May 25, 2011 at 9:06 AM, Merlin Moncure wrote: > On Wed, May 25, 2011 at 7:37 AM, Craig Ringer > wrote: >> On 05/24/2011 07:05 PM, Paragon Corporation wrote: >>> >>> In regression testing PostGIS 2.0, our topology module regression tests >>>

Re: [BUGS] PostgreSQL 9.1beta 1 Some domains not being able to be auto cast to their base type

2011-05-25 Thread Merlin Moncure
On Wed, May 25, 2011 at 7:37 AM, Craig Ringer wrote: > On 05/24/2011 07:05 PM, Paragon Corporation wrote: >> >> In regression testing PostGIS 2.0, our topology module regression tests >> are >> failing in PostgreSQL 9.1 beta. >> >> We have a PostGIS ticket open for it here, but we suspect it's a >

Re: [BUGS] BUG #5982: recursive type crashes postgres

2011-04-15 Thread Merlin Moncure
On Fri, Apr 15, 2011 at 4:27 PM, Kevin Grittner wrote: > Merlin Moncure wrote: > >> There are lots of use cases for this.  I use composite types to >> marshal data to the client all the time, and recursive structures >> are fairly common in many classic problems.  Recursi

Re: [BUGS] BUG #5982: recursive type crashes postgres

2011-04-15 Thread Merlin Moncure
On Fri, Apr 15, 2011 at 3:49 PM, Kevin Grittner wrote: > I haven't seen anything which seems like a reasonable use case yet, > myself.  If you were *actually* tracking turtles and their > offspring, that would be a completely worthless data structure.  Is > there really a case where a reference to

Re: [BUGS] BUG #5982: recursive type crashes postgres

2011-04-15 Thread Merlin Moncure
On Fri, Apr 15, 2011 at 1:34 PM, Rikard Pavelic wrote: > > The following bug has been logged online: > > Bug reference:      5982 > Logged by:          Rikard Pavelic > Email address:      rikard.pave...@zg.htnet.hr > PostgreSQL version: 9.1.alpha5 > Operating system:   Windows XP SP3 > Descriptio

Re: [BUGS] [GENERAL] PostgreSQL backend process high memory usage issue

2011-04-13 Thread Merlin Moncure
On Wed, Apr 13, 2011 at 12:29 AM, Tom Lane wrote: > Merlin Moncure writes: >> I think you may have uncovered a leak (I stand corrected). > >> The number of schemas in your test is irrelevant -- the leak is >> happening in proportion to the number of views (set via \setran

Re: [BUGS] [GENERAL] PostgreSQL backend process high memory usage issue

2011-04-12 Thread Merlin Moncure
On Tue, Apr 12, 2011 at 12:48 PM, Shianmiin wrote: > > Merlin Moncure-2 wrote: >> >> >> I am not seeing your results.  I was able to run your test on a stock >> config (cut down to 50 schemas though) on a vm with 512mb of memory. >> What is your shared buffers

Re: [BUGS] Can't use WITH in a PERFORM query in PL/pgSQL?

2011-03-24 Thread Merlin Moncure
On Thu, Mar 24, 2011 at 10:36 AM, Pavel Stehule wrote: > Hello > > why you can do it? > > please, try to RETURN QUERY ... > > Regards > > Pavel Stehule > > >> >> $$begin >> >> perform( >> >> with A as (select generate_series(1,3) as foo) >> >> select foo from A >> >> ); >> >> end$$; This is 'DO'

Re: [BUGS] Index Ignored Due To Use Of View

2011-03-23 Thread Merlin Moncure
On Wed, Mar 23, 2011 at 8:10 AM, Donald Fraser wrote: > - Original Message - > > Sent: Wednesday, March 23, 2011 12:50 PM > Subject: Index Ignored Due To Use Of View > PostgreSQL 8.3.14 > OS: Linux Redhat 5.4 > > Note: I have used the same subject for this email taken from an email: > Post

Re: [BUGS] BUG #5837: PQstatus() fails to report lost connection

2011-03-11 Thread Merlin Moncure
On Tue, Jan 25, 2011 at 12:01 PM, Murray S. Kucherawy wrote: >> -Original Message- >> From: Robert Haas [mailto:robertmh...@gmail.com] >> Sent: Tuesday, January 25, 2011 7:33 AM >> To: Kevin Grittner >> Cc: Murray S. Kucherawy; Tom Lane; pgsql-bugs@postgresql.org >> Subject: Re: [BUGS] BU

Re: [BUGS] BUG #5867: wish: plpgsql print table for debug

2011-03-03 Thread Merlin Moncure
On Thu, Mar 3, 2011 at 12:37 PM, Richard Neill wrote: > >> Sure it does.  You can pass the tuple to RAISE NOTICE easily enough. >> It won't have all the same bells and whistles psql would supply, but >> it prints out well enough for debugging.  Or at least it's never >> bothered me. > > Sorry if I

Re: [BUGS] BUG #5911: pg_notify() function only works when channel name is lower case

2011-03-03 Thread Merlin Moncure
On Thu, Mar 3, 2011 at 9:20 AM, Joshua McDougall wrote: > > The following bug has been logged online: > > Bug reference:      5911 > Logged by:          Joshua McDougall > Email address:      j...@schemaverse.com > PostgreSQL version: 9.0.3 > Operating system:   Slackware Linux  Kernel  2.6.28.6 >

Re: [BUGS] BUG #5905: segfault on pg_terminate_backend

2011-03-01 Thread Merlin Moncure
On Tue, Mar 1, 2011 at 12:50 PM, Matt Harrington wrote: > > The following bug has been logged online: > > Bug reference:      5905 > Logged by:          Matt Harrington > Email address:      matt.harring...@rentrak.com > PostgreSQL version: 8.4.3 > Operating system:   CentOS 4.7 > Description:    

Re: [BUGS] BUG #5902: pl/pgsql plans are not invalidated on discard all

2011-03-01 Thread Merlin Moncure
On Tue, Mar 1, 2011 at 5:11 AM, Ingmar Brouns wrote: > Hi Tom, > > thanks for your reply. > >> >> > I was looking for a workaround to this problem, and figured that calling >> > 'discard all', or 'discard plans' should do the trick. >> >> That's not a solution because the plancache module intentio

Re: [BUGS] Function trunc() behaves in unexpected manner with different data types

2011-02-25 Thread Merlin Moncure
On Fri, Feb 25, 2011 at 9:48 AM, Merlin Moncure wrote: > On Fri, Feb 25, 2011 at 9:40 AM, Alvaro Herrera > wrote: >> Excerpts from Merlin Moncure's message of vie feb 25 12:28:25 -0300 2011: >> >>> no I wouldn't, and the pg_dump extra_float_digits setting a

Re: [BUGS] Function trunc() behaves in unexpected manner with different data types

2011-02-25 Thread Merlin Moncure
On Fri, Feb 25, 2011 at 9:40 AM, Alvaro Herrera wrote: > Excerpts from Merlin Moncure's message of vie feb 25 12:28:25 -0300 2011: > >> no I wouldn't, and the pg_dump extra_float_digits setting addresses my >> primary concern.  The client has a similar issue though -- suppose it >> fetches a value

Re: [BUGS] Function trunc() behaves in unexpected manner with different data types

2011-02-25 Thread Merlin Moncure
On Fri, Feb 25, 2011 at 9:21 AM, Tom Lane wrote: > Merlin Moncure writes: >> right -- in understand how floating point works -- but are you are >> saying that you are ok with the fact that (for example) a table with a >> floating point unique key could dump and not restore?

Re: [BUGS] Function trunc() behaves in unexpected manner with different data types

2011-02-25 Thread Merlin Moncure
On Thu, Feb 24, 2011 at 8:03 PM, Greg Stark wrote: > On Thu, Feb 24, 2011 at 7:31 PM, Merlin Moncure wrote: >> the root issue I think here is that the string version of the double >> precision math is approximated: > > No, it's simpler than that, all double precision m

Re: [BUGS] Function trunc() behaves in unexpected manner with different data types

2011-02-24 Thread Merlin Moncure
On Thu, Feb 24, 2011 at 1:01 PM, Nathan M. Davalos wrote: > I ran into something interesting with using trunc() and different data > types: > > The following is a simplified from the statement we’re using and produces > the same results: > > select trunc( ((cast(2183.68 as numeric) - cast(1 as num

Re: [BUGS] [PERFORM] typoed column name, but postgres didn't grump

2010-11-04 Thread Merlin Moncure
On Thu, Nov 4, 2010 at 12:14 PM, Tom Lane wrote: > "Kevin Grittner" writes: >> Merlin Moncure wrote: >>> Trying to understand real world cases that this would >>> break...would the following now fail w/o explicit cast? >>> >>> create

Re: [BUGS] [PERFORM] typoed column name, but postgres didn't grump

2010-11-04 Thread Merlin Moncure
On Fri, Oct 29, 2010 at 4:12 PM, Tom Lane wrote: > "Kevin Grittner" writes: >> Robert Haas wrote: I think if I had to pick a proposal, I'd say we should disable #2 for the specific case of casting a composite type to something else. > >>> Well, then let's do that.  It's not the ex

Re: Drop one-argument string_agg? (was Re: [BUGS] string_agg delimiter having no effect with order by)

2010-08-04 Thread Merlin Moncure
On Wed, Aug 4, 2010 at 3:11 PM, Tom Lane wrote: > Alex Hunsaker writes: >> On Wed, Aug 4, 2010 at 11:04, Tom Lane wrote: >>> If we were a bit earlier in the 9.0 cycle I would suggest that this >>> confusion is a sufficient reason to drop the one-argument form of >>> string_agg. It's too late now

[BUGS] ERROR: cannot handle unplanned sub-select

2010-07-06 Thread Merlin Moncure
Not 100% sure I have a bug, but I've never seen this before so I though it was worth a post. Confirmed on 8.4.4 and 9.0 beta. I have a small self contained test case that I can send off line or on the list following some code obfuscation (it's fairly complex to set up). merlin -- Sent via pgs

[BUGS] 'missing parameter $1' for sql or pl/pgsql COPY

2009-09-16 Thread Merlin Moncure
The following functions fail: create or replace function docopy(int[]) returns int as $$ copy (select unnest($1)) to stdout; select 0; $$ language sql; ERROR: there is no parameter $1 create or replace function docopy(int[]) returns int as $$ begin copy (select unnest($1)) to stdout; e

Re: [BUGS] BUG #5032: unexpected syntax error for plpgsql function returns table

2009-09-03 Thread Merlin Moncure
On Thu, Sep 3, 2009 at 12:48 AM, Keith Cascio wrote: > Pavel, > > On Thu, 3 Sep 2009, Pavel Stehule wrote: > >> it's not bug - PostgreSQL doesn't support parameter placeholder on this >> position. Use dynamic query instead - plpgsql statement EXECUTE. > > Thank you for your reply.  I appreciate you

Re: [BUGS] BUG #5025: Aggregate function with subquery in 8.3 and 8.4.

2009-09-01 Thread Merlin Moncure
On Tue, Sep 1, 2009 at 4:11 AM, Heikki Linnakangas wrote: > 2. The semantics of STRICT with row arguments is broken. It should be > made consistent with IS NULL. Strict function should not be called if > the argument is a row value with all NULL columns. not just STRICT, but coalesce(), libpq 'is

Re: [BUGS] inconsistent composite type null handling in plpgsql out variable

2009-08-28 Thread Merlin Moncure
On Fri, Aug 28, 2009 at 1:38 PM, Kevin Grittner wrote: > Merlin Moncure wrote: > >> This leads to some very weird behaviors, for example 'coalesce(foo, >> something)' and 'case when foo is null then something else foo end' >> can give different an

[BUGS] inconsistent composite type null handling in plpgsql out variable

2009-08-28 Thread Merlin Moncure
Today I ran into a problem relating to $subject. plpgsql's handling of 'null' composite types is not consistent with what you get in sql: create table foo(a text, b text); create table bar(id int, f foo); insert into bar values (1, ('a', 'b')); create or replace function f(_foo out foo) returns

[BUGS] problem with non-greedy regex match

2009-01-13 Thread Merlin Moncure
I _may_ have found a problem that is affecting non-greedy regex matches. select regexp_matches( $$x = foo y x = foo y $$, $$x\s+(.*?)y$$ ,'g'); As I read it, this should match ' = foo' twice. Instead, it matches "= foo y x = foo " once. The non-greedy form (.*?) should break out at the fir

Re: [BUGS] No way to list DDL for a new type

2008-06-11 Thread Merlin Moncure
On 6/11/08, Heikki Linnakangas <[EMAIL PROTECTED]> wrote: > Rajesh Chopra wrote: > > Hi, > > I created a new type as follows: > > CREATE TYPE compfoo AS (f1 int, f2 text); > > > > Now I need the DDL which postgres used to create this type. > > > > Huh, what do you mean? That CREATE TYPE statement i

Re: [BUGS] Re: BUG #4053: libpq documentation should express clearly, that integers are passed in network octet order

2008-05-08 Thread Merlin Moncure
On Thu, May 8, 2008 at 12:27 PM, Bruce Momjian <[EMAIL PROTECTED]> wrote: > Andrew Chernow wrote: > > >>> This is exactly what libpqtypes solves. Not only do we handle > > >>> formatting of binary formats, we provide a level of protection from > > >>> internal format changes for libpq users. S

Re: [BUGS] BUG #4053: libpq documentation should express clearly, that integers are passed in network octet order

2008-05-08 Thread Merlin Moncure
Bruce Momjian wrote: > This brings up a good question. Exactly how do users know what format > _binary_ is? int4 is network byte order, but what about int8, float4, > inet? This is exactly what libpqtypes solves. Not only do we handle formatting of binary formats, we provide a level of protecti

Re: [BUGS] [HACKERS] Template0 age is increasing speedily.

2006-09-07 Thread Merlin Moncure
On 9/7/06, Nimesh Satam <[EMAIL PROTECTED]> wrote: We also noticed that the database slow downs heavily at a particular time..Can you suggest any tools which will help in diagnosing the root cause behiond the data load. possible checkpoint? poorly formulated query? it could be any number of t

Re: [BUGS] posgres on win2k, install cygipc

2002-11-26 Thread Merlin Moncure
in the win2k environment, I would consider adding the path to the Cygwin1.dll to the system path (for example, c:\cygwin\bin) then, using command prompt shell, not the CYGWIN shell, cd to the folder containing the ipc-daemon. >From there, type ipc-daemon to run the daemon or ipc-daemon --install-