Re: [BUGS] BUG #8516: Calling VOLATILE from STABLE function

2013-10-11 Thread Dimitri Fontaine
imited in scope static analysis for the cases where it's possible to do so would be great. With pg_depend tracking so that you know you're doing something wrong at DROP FUNCTION time. Regards, -- Dimitri Fontaine http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support --

Re: [BUGS] BUG #7575: "between" does not work properly with inet/cidr addresses

2012-10-12 Thread Dimitri Fontaine
n one cidr/inet ranges, so it won't be of much use. Have you tried using the ip4r extension yet? Regards, -- Dimitri Fontaine http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes

Re: [BUGS] BUG #6704: ALTER EXTENSION postgis SET SCHEMA leaves dangling relations

2012-09-25 Thread Dimitri Fontaine
Dimitri Fontaine writes: > Side note: as soon as we have CREATE EXTENSION AS $$ script $$; we will > be able to add those cases as regression tests. That's not the main > usage of that feature, by far, but I can't resits the occasion :) Oh, I did already mention it :)

Re: [BUGS] BUG #6704: ALTER EXTENSION postgis SET SCHEMA leaves dangling relations

2012-09-25 Thread Dimitri Fontaine
that level. This combination of choices ensures that we'll get > back valid reports of the old namespace for each object, and so the > are-they-all-the-same logic in AlterExtensionNamespace still works. See attached. Regards, -- Dimitri Fontaine http://2ndQuadrant.fr PostgreSQL : E

Re: [BUGS] BUG #6704: ALTER EXTENSION postgis SET SCHEMA leaves dangling relations

2012-09-24 Thread Dimitri Fontaine
is tracking attempt was also trying to change pg_depend entries, I think that was in two separate patches versions. DIRTT: Do It Right This Time Álvaro, do you want to be working on a master only version of the fix or do you want me to? Regards, -- Dimitri Fontaine

Re: [BUGS] BUG #6704: ALTER EXTENSION postgis SET SCHEMA leaves dangling relations

2012-09-13 Thread Dimitri Fontaine
Dimitri Fontaine writes: > I think we shouldn't change the content of pg_depend lightly here, and So here's a patch following that idea. Even for TIP I don't want us to change how pg_depend tracking is done, because I want to propose a fix for the pg_dump bug

Re: [BUGS] BUG #6704: ALTER EXTENSION postgis SET SCHEMA leaves dangling relations

2012-09-13 Thread Dimitri Fontaine
y AlterTableNamepace other than the table itself and its sequences are Indexes and Constraints. Owned Sequence (serial) will get cared of by the extension dependency walking code. I'm going to have a try at that. Regards, -- Dimitri Fontaine http://2ndQuadrant.fr PostgreSQL : Expert

Re: [BUGS] BUG #6704: ALTER EXTENSION postgis SET SCHEMA leaves dangling relations

2012-09-12 Thread Dimitri Fontaine
in the manual case. I think we need to share more code in between AlterRelationNamespaceInternal and AlterTableNamespace, but I'm not sure if that's not exactly what Álvaro did try with his _oid() attempt that failed. Regards, -- Dimitri Fontaine http://2ndQuadrant.fr PostgreSQL :

Re: [BUGS] Extension tracking temp table and causing update failure

2012-03-08 Thread Dimitri Fontaine
the API changes, you need to alter extension drop function in the script before 9.1.4). Regards, -- Dimitri Fontaine http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http

Re: [BUGS] Extension tracking temp table and causing update failure

2012-03-08 Thread Dimitri Fontaine
temp schema explicitly created by the extension script too (IIRC you can actually do that): it could be just about documentation, but if that's not too much contorting the code it would be better to just ERROR out, I think. Regards, -- Dimitri Fontaine http://2ndQuadrant.fr PostgreSQL

Re: [BUGS] Extension tracking temp table and causing update failure

2012-03-07 Thread Dimitri Fontaine
ect sense in general but is a useless restriction when executing an extension's script. I consider that bugfix for back branches, by the way (well, 9.1). Regards, -- Dimitri Fontaine http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support -- Sent via pgsql-bugs mailing list

Re: [BUGS] BUG #6172: DROP EXTENSION error without CASCADE

2011-08-22 Thread Dimitri Fontaine
owing an error is the best > thing. We could always relax that later, but going the other way might > be problematic. +1 Regards, -- Dimitri Fontaine http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgre

Re: [BUGS] BUG #6172: DROP EXTENSION error without CASCADE

2011-08-22 Thread Dimitri Fontaine
ext)) { /* If already a member of this extension, nothing to do */ if (oldext == CurrentExtensionObject) return; The problem lies in catalog scans and SnapshotNow, I think.

Re: [BUGS] BUG #6171: Sockets Issue

2011-08-22 Thread Dimitri Fontaine
"Robert Hopek" writes: > coding), existing software, such as phpPgAdmin, are stuck only looking in > /tmp for it. Did you try host=/custom/path/to/the/socket/? Regards, -- Dimitri Fontaine http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support -- Sent via pg

Re: [BUGS] BUG #6172: DROP EXTENSION error without CASCADE

2011-08-21 Thread Dimitri Fontaine
Dimitri Fontaine writes: > Also, \dx+ cube will not show all the operators and functions. Some dependency information is indeed missing in pg_depend. Will look at why tomorrow, day's over here. Regards, -- Dimitri Fontaine http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et

Re: [BUGS] BUG #6172: DROP EXTENSION error without CASCADE

2011-08-21 Thread Dimitri Fontaine
atalog.regclass AND refobjid = '16385' AND deptype = 'e' dim-# ORDER BY 1; Of course we didn't have that problem when we added extensions in (that I remember of), so I'm now going to try and find when that did change… Regards, -- Dimitri Fontaine http://2ndQuadran

Re: [BUGS] BUG #5946: Long exclusive lock taken by vacuum (not full)

2011-05-02 Thread Dimitri Fontaine
with the background process doing so itself). Regards, -- Dimitri Fontaine http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs

Re: [BUGS] Mismapping of Mountain Time

2011-03-04 Thread Dimitri Fontaine
Josh Berkus writes: > echo $TZ returns nothing. We've checked several Ubuntu systems, and it > seems that Ubuntu does not set $TZ. You can tweak that easily by editing /etc/postgresql/8.4/main/environment. Regards, -- Dimitri Fontaine http://2ndQuadrant.fr PostgreSQL

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

2011-03-03 Thread Dimitri Fontaine
Tom Lane writes: > Note that doing anything more than RAISE NOTICE or equivalent would > imply a significant protocol change. My understanding is that the standard allows multiple resultsets per query, is that the protocol change you're talking about? Regards, -- Dimitri Fo

Re: [BUGS] Portable, simple means of determining distribution directory

2011-02-02 Thread Dimitri Fontaine
Steve White writes: > It would be advantageous to have a portable, simple means of including > a module from the distribution contrib/ directory. Please have a look at the Extension patch section here: https://commitfest.postgresql.org/action/commitfest_view?id=9 Regards, -- D

Re: [BUGS] BUG #5740: contrib/spi/moddatetime.c doesn't work with timezones.

2010-11-04 Thread Dimitri Fontaine
're talking about a trigger that looks at the column type here, it was a misplaced general advice. Regards, -- Dimitri Fontaine http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to

Re: [BUGS] BUG #5740: contrib/spi/moddatetime.c doesn't work with timezones.

2010-11-03 Thread Dimitri Fontaine
THNAME' > +LANGUAGE C; You can also do AS 'MODULE_PATHNAME', 'c_function_name' and maintain a single C function that copes with both timestamp and timestamptz arguments, that's what I had in mind: you still declare two functions at the SQL level, though. Regards, -- D

Re: [BUGS] BUG #5740: contrib/spi/moddatetime.c doesn't work with timezones.

2010-11-02 Thread Dimitri Fontaine
ith time zone (1 row) So I guess that you need to modify very little code to get the trigger to work for both types. Regards, -- Dimitri Fontaine http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make ch

Re: [BUGS] index on function confuses drop table cascade on child

2010-11-02 Thread Dimitri Fontaine
Tom Lane writes: > Any thoughts out there? Color me slow, but I don't understand what allows an index creation on a table to not systematically add a dependency entry for the index that references the table. Regards, -- Dimitri Fontaine http://2ndQuadrant.fr PostgreSQL : E

Re: [BUGS] BUG #5736: 9.0.1 segmentation fault (sig11) during long-lived update

2010-10-31 Thread Dimitri Fontaine
bles for postmaster process # This file has the same syntax as postgresql.conf: # VARIABLE = simple_value # VARIABLE2 = 'any value!' # I. e. you need to enclose any value which does not only consist of letters, # numbers, and '-', '_', '.' in single quotes. S

Re: [BUGS] BUG #5687: RADIUS Authentication issues

2010-10-07 Thread Dimitri Fontaine
eeRADIUS, use "radclient" to send the following text: > > User-Name = "bob" > User-Password = "hello" > Raw-Attribute = 0x0501 > > The last bit is a malformed RADIUS attribute. Would using this lib help here? http://caca.zoy.org/wiki/zzuf Regards

Re: [BUGS] installer problems

2010-09-24 Thread Dimitri Fontaine
Dave Page writes: > On Fri, Sep 24, 2010 at 6:28 AM, Peter Eisentraut wrote: >> On tor, 2010-09-23 at 23:56 +0100, Dave Page wrote: >>> > Surely the error message can be polished, though? > > How else would you suggest we find out what may go wrong on an > unsupported platform? My guess here is

Re: [BUGS] BUG #5532: Valid UTF8 sequence errors as invalid

2010-07-06 Thread Dimitri Fontaine
Tom Lane writes: > (BTW, I should think that iconv or some related tool would have a > solution for fixing this miscoding; it's not an uncommon problem.) I guess recode is handling that. http://recode.progiciels-bpi.ca/manual/Universal.html#Universal Regards, -- dim -- Sent via pgsql-bugs

Re: [BUGS] BUG #5488: pg_dump does not quote column names -> pg_restore may fail when upgrading

2010-06-11 Thread Dimitri Fontaine
Robert Haas writes: > Suppose I have a server running 8.2 and I'm going to wipe it and > install the latest version of $DISTRIBUTION which bundles 8.4. [...] > I'm sure someone will tell me my system administration practices suck, > but people do these kinds of things, in real life, all the time.

Re: [BUGS] BUG #5488: pg_dump does not quote column names -> pg_restore may fail when upgrading

2010-06-11 Thread Dimitri Fontaine
Stephen Frost writes: > If it's an option w/ a default of "off", then chances are the admin will > get the failure you're talking about, realize there's an issue, but then > have a way to actually *fix* the restore without having to hack up > multi-gigabyte files using vi. If you'd like, you're w

Re: [BUGS] BUG #5488: pg_dump does not quote column names -> pg_restore may fail when upgrading

2010-06-11 Thread Dimitri Fontaine
Top posting, sorry for that. -- dim Le 10 juin 2010 à 03:40, Robert Haas a écrit : On Wed, Jun 9, 2010 at 9:35 PM, Bruce Momjian wrote: Robert Haas wrote: I think users would rather have the restore fail, and know right away they have an issue, than to do the upgrade, and find out lat

Re: [BUGS] Re: BUG #5490: Using distinct for select list causes insert of timestamp string literal to fail

2010-06-07 Thread Dimitri Fontaine
Craig Ringer writes: >> - other products are happy to solve the DISTINCT restriction without >> any hint as far as what the datatype really is > > ... and so is Pg. That's not the problem; Pg complains after resolving the > SELECT DISTINCT, when it finds that it's trying to insert values of

Re: [BUGS] Re: BUG #5490: Using distinct for select list causes insert of timestamp string literal to fail

2010-06-06 Thread Dimitri Fontaine
Farid Zidan writes: > I see no technical analysis in your response. I made a clear reference to what others have been saying, and that you have been refusing to read. I don't see any point in getting technical again, as I'm sure you will refuse to understand what is happening to you here. But a

Re: [BUGS] BUG #5488: pg_dump does not quote column names -> pg_restore may fail when upgrading

2010-06-06 Thread Dimitri Fontaine
Robert Haas writes: >> Well as Bruce said this option won't solve the OP's problem, unless the >> application he's using for managing the backups do use the option. > > Well, that's a pretty trivial change to the backup script. +1 from me on > providing a pg_dump option. The application still ha

Re: [BUGS] Re: BUG #5490: Using distinct for select list causes insert of timestamp string literal to fail

2010-06-05 Thread Dimitri Fontaine
Farid Zidan writes: > I am not asking you to re-write my sql so the bug will not show. I am > presenting you with sql that fails and shows the bug. If every time > someone reported a bug you ask them to re-write their sql so the bug > is not hit, that would not eliminate the bug. You're not readi

Re: [BUGS] BUG #5488: pg_dump does not quote column names -> pg_restore may fail when upgrading

2010-06-05 Thread Dimitri Fontaine
Alvaro Herrera writes: > I don't think "dumps must be human-readable" is an argument to reject > such a switch, as long as it's off by default. And I haven't seen any > other valid argument either, so +1 from me. Well as Bruce said this option won't solve the OP's problem, unless the application

Re: [BUGS] bugs that have not been replied-to on list

2010-04-28 Thread Dimitri Fontaine
Stefan Kaltenbrunner writes: > As in have a (hyptothetical) tracker being subscribed to -bugs (and maybe > the other lists in the future as well) so the workflow would look like > this: Well there is a WIP to use an ArchiveOpteryX based solution to replace the archives and get rid of the artifici

Re: [BUGS] dividing money by money

2010-04-02 Thread Dimitri Fontaine
Chris Travers writes: > Ok. Here is my application: I write a multi-currency accounting > program backed by PostgreSQL. After 1.3 is released (2Q this year), > we expect to be doing a full redesign. > > What I am thinking about is having a custom data type, something like: I'd be interested in

Re: [BUGS] BUG #5389: Column order on dump/reload broken from defined setof function

2010-03-26 Thread Dimitri Fontaine
"Timothy Seever" writes: > CREATE FUNCTION testfunc() RETURNS setof tablec AS $BODY$ SELECT * FROM > tablec; $BODY$ LANGUAGE 'sql' STABLE; Common wisdom saith to never ever use "SELECT *" in your code. You just found out a reason why. Regards, -- dim -- Sent via pgsql-bugs mailing list (pgsql

Re: [BUGS] Bug report: Wrong version in pg_config

2010-01-12 Thread Dimitri Fontaine
Tom Lane writes: > You would need to take that up with whoever packages Postgres for > Ubuntu. It sounds like they have some glitch in the package setup. > AFAIK, whoever that is doesn't read this list, which is mainly for > upstream Postgres development. I think Martin Pitt reads this list, he'

Re: [BUGS] Bug report: Wrong version in pg_config

2010-01-12 Thread Dimitri Fontaine
Adam Matan writes: > But still, pg_config remains with the removed version, after postresql > restart and even total reboot: > > $  pg_config > BINDIR = /usr/lib/postgresql/8.4/bin [...] > This creates confusion with external software packages trying to use pgxs, > for example. > Any ideas how t

Re: [BUGS] BUG #5137: Upgrade policy clarification

2009-10-26 Thread Dimitri Fontaine
Peter Eisentraut writes: > On sön, 2009-10-25 at 13:52 +, Peter Bengtson wrote: >> It would be good if you to the page describing how a db dump is required >> only for major verson upgrades, e.g. from 8.3.x to 8.4.x but not from, say, >> 8.3.7 to 8.3.8, could add a proviso: a DB dump *is* nece

Re: [BUGS] BUG #5062: 8.4.1 compile fails on debian can't find libdl

2009-09-18 Thread Dimitri Fontaine
Tom Lane writes: > "philip wright" writes: >> Description:8.4.1 compile fails on debian can't find libdl > > Our Debian packager would certainly have complained before now if PG > didn't build on Debian. I suspect that you have forgotten to install > some needed support files. Does Deb

Re: [BUGS] BUG #4966: wrong password.....

2009-08-06 Thread Dimitri Fontaine
Hi, "walkerlacombe" writes: > Operating system: vista home premium > Description:wrong password. > Details: > > when i boot up my pc i have owner and postgresql as users.for postgresql i > need a password. now when i downloaded postgresql i had to make 2 passwords. > now , when i

Re: [BUGS] BUG #4901: Column name "window" breaks pg_dump/pg_restore

2009-07-06 Thread Dimitri Fontaine
Steve Purcell writes: > # su - postgres -c "env PGCLUSTER=8.3/main pg_dump openx|env > PGCLUSTER=8.4/main pg_restore -d template1 -C" > > And the debian pg_wrapper script ends up selecting the 8.3 pg_dump binary in > the first case. I'll have to figure out if there's even a way to execute > the

[BUGS] custom_variable_classes module names

2009-05-13 Thread Dimitri Fontaine
Hi, While preparing a module which should make its way to pgfoundry CVS soon (BSD licenced), I stumbled accross a naming problem when using custom_variable_classes. It'll actively refuse the name if it contains an underscore (_): ERROR: unrecognized configuration parameter "pre_prepare.relation

[BUGS] 8.2 pg_freespacemap crash

2009-04-07 Thread Dimitri Fontaine
Hi, We've been hit by a pg_freespacemap contrib module crash (SIGSEGV), gdb showed it was in line 162 of it's pg_freespacemap.c file. fctx->record[i].reltablespace = fsmrel->key.spcNode; Thanks to Andrew Gierth (irc:RhodiumToad) and after some analysis and we've been able to understan

Re: [BUGS] bug found in 8.3 beta 3.

2007-12-17 Thread Dimitri Fontaine
Hi, Le Monday 17 December 2007 19:05:36 chris wood, vous avez écrit : > Hi, I found this bug? In beta 3. I am not a Linux guru so installing any > betas in Debian is very painful for me. Perhaps you could check to see if > it is still there in beta 4?? The experimental sources of debian already