Re: [HACKERS] Question about ECPGset_noind_null() and ECPGis_noind_null()

2009-11-19 Thread Boszormenyi Zoltan
Boszormenyi Zoltan írta: > Hi, > > my question is that what platform were these > functions developed and tested? > > We have come across a value that fails a NOT NULL > constraint upon INSERT under HP-UX/IA64, but not > under x86-64 Linux. The value in question is > 1.9

[HACKERS] Question about ECPGset_noind_null() and ECPGis_noind_null()

2009-11-19 Thread Boszormenyi Zoltan
Hi, my question is that what platform were these functions developed and tested? We have come across a value that fails a NOT NULL constraint upon INSERT under HP-UX/IA64, but not under x86-64 Linux. The value in question is 1.9998 assigned to a "double" variable. Under HP-UX/IA64, te

Re: [HACKERS] CommitFest 2009-09, two weeks on

2009-11-13 Thread Boszormenyi Zoltan
Alvaro Herrera írta: > Boszormenyi Zoltan escribió: > >> Alvaro Herrera írta: >> >>> I have applied this patch after some tinkering. I mainly added support >>> for "fetch_args: FORWARD opt_from_in name" and "BACKWARD opt_from_in &

Re: [HACKERS] CommitFest 2009-09, two weeks on

2009-11-12 Thread Boszormenyi Zoltan
Alvaro Herrera írta: > Boszormenyi Zoltan escribió: > > >> 2) 1b-cursor_name-ctxdiff.patch >> >> "name" -> "cursor_name" transition in core grammar >> and ecpg grammar. Currently it does nothing, it's a >> preparation phase.

Re: [HACKERS] CommitFest 2009-09, two weeks on

2009-11-12 Thread Boszormenyi Zoltan
Alvaro Herrera írta: > Boszormenyi Zoltan escribió: > > >> I have split up (and cleaned up a little) the dynamic >> cursorname patch into smaller logical, easier-to-review >> pieces. Descriptions below. >> >> 1) 1a-unified-optfromin-fetch-ctxdiff.patch

[HACKERS] "toast.fillfactor" is documented but not recognized?

2009-10-26 Thread Boszormenyi Zoltan
Hi, I tried to utilize the advertised feature of 8.4, the separate fillfactor setting for the toast table. o=# create table t2 (id serial primary key, t text) with (fillfactor=75, toast.fillfactor=60); NOTICE: CREATE TABLE will create implicit sequence "t2_id_seq" for serial column "t2.id" ERROR

[HACKERS] GROUP BY bug or feature?

2009-10-26 Thread Boszormenyi Zoltan
Hi, we have come across a problem where we need an inverted index, an array of IDs ordered by another condition. We came up with this scheme: -- final inverted index CREATE TABLE product.t_product_inv ( wordtextprimary key not null, ids bigint[] ); -- transition table

Re: [HACKERS] ECPG: store own copy of the prepared statement name

2009-10-15 Thread Boszormenyi Zoltan
Michael Meskes írta: > On Wed, Oct 14, 2009 at 06:37:43PM +0200, Boszormenyi Zoltan wrote: > >> the attached patch makes ECPG more robust >> against applications that free() strings by storing >> its own copy of the prepared statement name. >> > > Ple

[HACKERS] ECPG: store own copy of the prepared statement name

2009-10-14 Thread Boszormenyi Zoltan
Hi, the attached patch makes ECPG more robust against applications that free() strings by storing its own copy of the prepared statement name. Best regards, Zoltán Böszörményi -- Bible has answers for everything. Proof: "But let your communication be, Yea, yea; Nay, nay: for whatsoever is more

Re: [HACKERS] Review of "SQLDA support for ECPG"

2009-10-10 Thread Boszormenyi Zoltan
Michael Meskes írta: > On Thu, Oct 08, 2009 at 01:15:58PM +0200, Boszormenyi Zoltan wrote: > >>> What's the point of that? It can't be applied without documentation, >>> and it just makes life more complicated to have two separate patch >>> files fl

Re: [HACKERS] Review of "SQLDA support for ECPG"

2009-10-08 Thread Boszormenyi Zoltan
Robert Haas írta: > On Thu, Oct 8, 2009 at 6:22 AM, Boszormenyi Zoltan wrote: > >> Noah Misch írta: >> >>> I will report on the sqlda patch in more detail on >>> 2009-10-10. >>> >> I am attaching a new one, please review this. Cha

Re: [HACKERS] Review of "SQLDA support for ECPG"

2009-10-05 Thread Boszormenyi Zoltan
Hi, thank you very much for the review. Noah Misch írta: > I took a look at 2-pg85-sqlda-10-ctxdiff.patch. Starting from CVS HEAD of > roughly 2009-10-03 05:00 UTC, prerequisite patches 1a-1h applied cleanly. > 2-pg85-sqlda hit a trivial whitespace reject in ecpg.trailer along with a more > subs

ECPG dynamic cursorname patch revised and split Re: [HACKERS] CommitFest 2009-09, two weeks on

2009-10-02 Thread Boszormenyi Zoltan
Robert Haas írta: > On Fri, Oct 2, 2009 at 9:01 PM, Boszormenyi Zoltan wrote: > >> Hi, >> >> Michael Meskes írta: >> >>> It is accepted either way. I was just pointing out that it might be easier >>> to >>> review/com

Re: [HACKERS] CommitFest 2009-09, two weeks on

2009-10-02 Thread Boszormenyi Zoltan
Michael Meskes írta: > On Thu, Oct 01, 2009 at 09:05:55PM +0200, Boszormenyi Zoltan wrote: > >> Yes, but technical problems and solutions do. ECPG claims >> to be ESQL/C compatible, but at places it's only half compatible. >> > > Where does it claim to

Re: [HACKERS] CommitFest 2009-09, two weeks on

2009-10-01 Thread Boszormenyi Zoltan
Michael Meskes írta: > On Thu, Oct 01, 2009 at 07:21:54PM +0200, Boszormenyi Zoltan wrote: > >> Please, accept my apologies, I only tried to express my >> frustration, this is not a good situation for either of us. >> > > Apologies accepted, email is a di

Re: [HACKERS] CommitFest 2009-09, two weeks on

2009-10-01 Thread Boszormenyi Zoltan
Michael Meskes írta: > On Thu, Oct 01, 2009 at 03:47:07PM +0200, Boszormenyi Zoltan wrote: > >> You're not being fair with me. The dependencies are quite >> technical. >> > > I'm sorry that you interpreted my email this way, it wasn't at all m

Re: [HACKERS] CommitFest 2009-09, two weeks on

2009-10-01 Thread Boszormenyi Zoltan
Michael Meskes írta: > On Wed, Sep 30, 2009 at 12:34:23PM -0400, Tom Lane wrote: > >> qualified to review them. (I don't actually think we have anybody >> except Michael who's really familiar with ecpg.) >> > > I'm afraid I'm simply not able to spend much time on this in the near future >

Re: [HACKERS] SELECT ... FOR UPDATE [WAIT integer | NOWAIT] for 8.5

2009-09-21 Thread Boszormenyi Zoltan
Jeff Janes írta: > On Thu, Sep 3, 2009 at 6:47 AM, Boszormenyi Zoltan <mailto:z...@cybertec.at>> wrote: > > Boszormenyi Zoltan írta: > > Alvaro Herrera írta: > > > >> Boszormenyi Zoltan wrote: > >> > >> > >

Re: [HACKERS] SELECT ... FOR UPDATE [WAIT integer | NOWAIT] for 8.5

2009-09-21 Thread Boszormenyi Zoltan
Jeff Janes írta: > On Thu, Sep 3, 2009 at 6:47 AM, Boszormenyi Zoltan <mailto:z...@cybertec.at>> wrote: > > Boszormenyi Zoltan írta: > > > > Okay, we implemented only the lock_timeout GUC. > > Patch attached, hopefully in an acceptable form. &

Re: [HACKERS] ECPG patchset

2009-09-18 Thread Boszormenyi Zoltan
New patch - two decimal-related memory leak fixes. Happens on 8.4 and 8.5, maybe on older trees as well. One of the two chunks was in the SQLDA patch originally. This is independent from any other patches. -- Bible has answers for everything. Proof: "But let your communication be, Yea, yea; Nay,

[HACKERS] Can the PostgreSQL weekly news be retrospectively edited?

2009-09-15 Thread Boszormenyi Zoltan
Hi, I saw the editor added this line: "Zoltan Boszormenyi sent in a small patch to fix a typo in an earlier ECPG patch he sent." This typo fix is an upstream bugfix. Thanks. -- Bible has answers for everything. Proof: "But let your communication be, Yea, yea; Nay, nay: for whatsoever is more th

Re: [HACKERS] ECPG patchset

2009-09-08 Thread Boszormenyi Zoltan
New patch, typo fix in pgc.l. According to our customer who is porting their application to PostgreSQL, this causes an error currently in ECPG: 1. within included structures the use of "$else;" is causing an precompiler error (tested several times in d

Re: [HACKERS] Eliminating VACUUM FULL WAS: remove flatfiles.c

2009-09-04 Thread Boszormenyi Zoltan
Tom Lane írta: > Josh Berkus writes: > I have a client who uses temp tables heavily, hundreds of thousands of creates and drops per day. They also have long running queries. The only thing that keeps catalog bloat somewhat in check is vacuum full on bloated catalogs >>>

Re: [HACKERS] SELECT ... FOR UPDATE [WAIT integer | NOWAIT] for 8.5

2009-09-03 Thread Boszormenyi Zoltan
Boszormenyi Zoltan írta: > Alvaro Herrera írta: > >> Boszormenyi Zoltan wrote: >> >> >> >>> The vague consensus for syntax options was that the GUC >>> 'lock_timeout' and WAIT [N] extension (wherever NOWAIT >>> is all

[HACKERS] ECPG patchset

2009-09-03 Thread Boszormenyi Zoltan
Hi, we have updated our patchset to current 8.5 CVS. The actual patches will be in emails coming as answers to this one. As two patches were already included, the remaining patches are as follows: 1. dynamic cursorname 2. sqlda support 3. describe support 4. proper out-of-scope declare/open/fetch

Re: [HACKERS] 8.5 release notes idea

2009-09-01 Thread Boszormenyi Zoltan
Bruce Momjian írta: > Greg Sabino Mullane wrote: > [ There is text before PGP section. ] > >> -BEGIN PGP SIGNED MESSAGE- >> Hash: RIPEMD160 >> >> Just noticed in the release notes for 8.4, there are two items >> accredited to just "Greg" (but there are three of us Gregs who >> contribute

Re: [HACKERS] Build system problem in 8.3.x

2009-08-27 Thread Boszormenyi Zoltan
Heikki Linnakangas írta: > Boszormenyi Zoltan wrote: > >> we have come across a problem in 8.3.x (8.3.5 and 8.3.7 was tested) >> while building PostgreSQL for 32-bit on 64-bit RHEL5 and Fedora 9. >> >> The following defines were used before running config

Re: [HACKERS] MySQL Compatibility WAS: 8.5 release timetable, again

2009-08-27 Thread Boszormenyi Zoltan
Tom Lane írta: > Greg Stark writes: > >> Actually it always bothered me that we don't have implicit casts from >> integer->boolean. I can't see any ambiguity or unintentional effects >> this would cause problems with. Am I missing something? >> > > Personally, as an old Pascal-lover, I alw

[HACKERS] Build system problem in 8.3.x

2009-08-27 Thread Boszormenyi Zoltan
Hi, we have come across a problem in 8.3.x (8.3.5 and 8.3.7 was tested) while building PostgreSQL for 32-bit on 64-bit RHEL5 and Fedora 9. The following defines were used before running configure: export CFLAGS="-m32" export LD="ld -melf_i386" The above are needed because when SUBSYS.o files ar

Re: [HACKERS] Split-up ECPG patches

2009-08-16 Thread Boszormenyi Zoltan
Michael Meskes írta: > On Fri, Aug 14, 2009 at 10:12:24PM +0200, Boszormenyi Zoltan wrote: > >> Will add the ecpg_log(). What the code does is: >> - sets up a minimal SQLDA on the first call (called with NULL ptr), >> so the field types and field names and some other

Re: [HACKERS] Split-up ECPG patches

2009-08-14 Thread Boszormenyi Zoltan
Michael Meskes írta: > On Mon, Aug 03, 2009 at 06:12:43PM +0200, Boszormenyi Zoltan wrote: > >> - sqlda support: >> - sqlda.c now indicates license >> - #defines inside #if 0 ... #endif are now omitted from sqltypes.h >> (both per comments from Jaime Casanov

Re: [HACKERS] DECLARE doesn't set/reset sqlca after DECLARE cursor

2009-08-14 Thread Boszormenyi Zoltan
Michael Meskes írta: > On Fri, Aug 14, 2009 at 01:02:07PM +0200, Boszormenyi Zoltan wrote: > >> Here are the two test files, with their preprocessed C output. >> Indeed, Informix emits a function call for DECLARE CURSOR. >> And it seems it's not legal to

Re: [HACKERS] DECLARE doesn't set/reset sqlca after DECLARE cursor

2009-08-14 Thread Boszormenyi Zoltan
Michael Meskes írta: > On Thu, Aug 13, 2009 at 05:55:53PM +0200, Boszormenyi Zoltan wrote: > >> Okay, so it's a declarative command. But if we're in a function, >> we should still emit a call to ecpg_init, to be able to follow >> > > No, either it

Re: [HACKERS] DECLARE doesn't set/reset sqlca after DECLARE cursor

2009-08-13 Thread Boszormenyi Zoltan
Michael Meskes írta: > On Wed, Aug 12, 2009 at 07:13:44PM +0200, Boszormenyi Zoltan wrote: > >> a customer of us complained a behavioural difference >> ... >> The attached patch implements this. The only downside >> is that now DECLARE CURSOR cannot appear outside

[HACKERS] DECLARE doesn't set/reset sqlca after DECLARE cursor

2009-08-12 Thread Boszormenyi Zoltan
Hi, a customer of us complained a behavioural difference between ESQL/C and ECPG. They check sqlca.sqlcode almost everywhere in their application currently under porting to PostgreSQL. Somewhere in their code however there was a place where a statement error was ignored and the error was reported

Re: [HACKERS] Split-up ECPG patches

2009-08-10 Thread Boszormenyi Zoltan
Boszormenyi Zoltan írta: > OK, here's the WIP patch for the unified core/ecpg grammar, > with opt_from_in. But I am still getting the 2 shift/reduce > conflicts exactly for the FORWARD and BACKWARD rules > that I was getting originally. Can you look at this patch and > p

Re: [HACKERS] Split-up ECPG patches

2009-08-09 Thread Boszormenyi Zoltan
Boszormenyi Zoltan írta: > Tom Lane írta: > >> Boszormenyi Zoltan writes: >> >> >>> Tom Lane írta: >>> >>> >>>> I'd look at requiring from_in as being the least-bad alternative. >>>> >

Re: [HACKERS] Split-up ECPG patches

2009-08-09 Thread Boszormenyi Zoltan
Michael Meskes írta: > On Sat, Aug 08, 2009 at 04:57:57PM -0400, Tom Lane wrote: > >> The fundamental reason that there's a problem here is that ecpg has >> decided to accept a syntax that the backend doesn't (ie, FETCH with a >> fetch direction but no FROM/IN). I think that that's basically a

Re: [HACKERS] Split-up ECPG patches

2009-08-09 Thread Boszormenyi Zoltan
Tom Lane írta: > Boszormenyi Zoltan writes: > >> Tom Lane írta: >> >>> I'd look at requiring from_in as being the least-bad alternative. >>> > > >> Hm. "FETCH FORWARD variable" can only be a rowcount var >> onl

Re: [HACKERS] Split-up ECPG patches

2009-08-09 Thread Boszormenyi Zoltan
Boszormenyi Zoltan írta: > Tom Lane írta: > >> I wrote: >> >> >>> The fundamental reason that there's a problem here is that ecpg has >>> decided to accept a syntax that the backend doesn't (ie, FETCH with a >>> fetch di

Re: [HACKERS] Split-up ECPG patches

2009-08-08 Thread Boszormenyi Zoltan
Tom Lane írta: > I wrote: > >> The fundamental reason that there's a problem here is that ecpg has >> decided to accept a syntax that the backend doesn't (ie, FETCH with a >> fetch direction but no FROM/IN). I think that that's basically a bad >> idea: it's not helpful to users to be inconsiste

Re: [HACKERS] Split-up ECPG patches

2009-08-08 Thread Boszormenyi Zoltan
Tom Lane írta: > Boszormenyi Zoltan writes: > >> Tom Lane írta: >> >>> I'd look at requiring from_in as being the least-bad alternative. >>> > > >> Hm. "FETCH FORWARD variable" can only be a rowcount var >> onl

Re: [HACKERS] Split-up ECPG patches

2009-08-08 Thread Boszormenyi Zoltan
Tom Lane írta: > Boszormenyi Zoltan writes: > >> Michael Meskes Ă­rta: >> >>> The problem is that SignedIconst might be a char variable, >>> too. So how shall the parser know whether str in "FETCH BACKWARD :str" >>> carries >>

Re: [HACKERS] Split-up ECPG patches

2009-08-08 Thread Boszormenyi Zoltan
Michael Meskes írta: > On Sat, Aug 08, 2009 at 07:21:59PM +0200, Boszormenyi Zoltan wrote: > >>> A possible solution >>> would be to force a numeric variable for numeric data. >>> >> By which you would remove a feature. >> With the proposed

Re: [HACKERS] Split-up ECPG patches

2009-08-08 Thread Boszormenyi Zoltan
Michael Meskes írta: > On Sat, Aug 08, 2009 at 05:48:57PM +0200, Boszormenyi Zoltan wrote: > >> ... >> "/usr/bin/perl" ./parse.pl . < ../../../../src/backend/parser/gram.y > >> preproc.y >> /usr/bin/bison -d -o preproc.c preproc.y >> preproc

Re: [HACKERS] Split-up ECPG patches

2009-08-08 Thread Boszormenyi Zoltan
Tom Lane írta: > Michael Meskes writes: > >> Tom, AFAICT we only need one core grammar change, moving the cursor name to >> it's own rule that only resolves back to name. This rule should be eliminated >> by bison during the build process anyway, so I see no problem adding it. It >> does make t

Re: [HACKERS] Split-up ECPG patches

2009-08-08 Thread Boszormenyi Zoltan
Michael Meskes írta: > On Mon, Aug 03, 2009 at 06:59:30PM +0200, Boszormenyi Zoltan wrote: > >>> Why is this messing with the core grammar? >>> >> ... >> > > Zoltan, could you please explain why you unrolled FORWARD and BACKWARD? I > tri

Re: [HACKERS] Split-up ECPG patches

2009-08-08 Thread Boszormenyi Zoltan
Michael Meskes írta: > On Fri, Aug 07, 2009 at 12:08:00PM -0400, Alvaro Herrera wrote: > >> I think we're normally OK with mentioning the authors, i.e. "Author: >> > > Yes, it's OK, but I think we normally only acknowledge the author in our > commit > messages, don't we? > > >> such and

Re: [HACKERS] ECPG support for struct in INTO list

2009-08-07 Thread Boszormenyi Zoltan
Michael Meskes írta: > On Fri, Aug 07, 2009 at 11:48:33AM +0200, Boszormenyi Zoltan wrote: > >> Which isn't exactly a good programming habit. >> > > I couldn't agree more. > :-) >> In the above code local, in-scope variables are also r

Re: [HACKERS] Split-up ECPG patches

2009-08-07 Thread Boszormenyi Zoltan
Michael Meskes írta: > On Fri, Aug 07, 2009 at 01:05:33PM +0200, Boszormenyi Zoltan wrote: > >> Hey, thanks. Did you only commit this, or all of >> those in the patchset? Exluding the nonfix for >> the struct problem of course. >> > > So far only this

Re: [HACKERS] Split-up ECPG patches

2009-08-07 Thread Boszormenyi Zoltan
Michael Meskes írta: > On Mon, Aug 03, 2009 at 06:12:43PM +0200, Boszormenyi Zoltan wrote: > >> - string support: I am doing much less now unconditionally, >> most of the parser changes (e.g. introducing STRING_P) >> were unnecessary to make it working. >>

Re: [HACKERS] ECPG support for struct in INTO list

2009-08-07 Thread Boszormenyi Zoltan
Michael Meskes írta: > On Wed, Aug 05, 2009 at 04:22:53PM +0200, Boszormenyi Zoltan wrote: > >> If you meant like this below, then ECPG segfaults on this too: >> > > Right, because arrays as as well unimplemented as are structs. I meant > something like thi

Re: [HACKERS] Re: [Pg-migrator-general] Composite types break pg_migrated tables

2009-08-06 Thread Boszormenyi Zoltan
Tom Lane írta: > At the moment it looks to me like pg_migrator has crashed and burned > for 8.4, at least for general-purpose usage. It means that you don't have the restraint that you thought you have. So you can change the RedHat/Fedora PostgreSQL 8.4 packages to use the upstream default for int

Re: [HACKERS] ECPG support for struct in INTO list

2009-08-05 Thread Boszormenyi Zoltan
Boszormenyi Zoltan írta: > Michael Meskes írta: > >> On Wed, Aug 05, 2009 at 11:08:26AM +0200, Boszormenyi Zoltan wrote: >> >> >>> I have looked at it. The code seems to be invalid. >>> >>> >> Yes, it is, I was t

Re: [HACKERS] ECPG support for struct in INTO list

2009-08-05 Thread Boszormenyi Zoltan
Michael Meskes írta: > On Wed, Aug 05, 2009 at 03:04:00PM +0200, Boszormenyi Zoltan wrote: > >> My question is: why not unroll the struct in the preprocessor? >> > > The problem is not that the struct is unrolled in the preprocessor. I just > don't like the

Re: [HACKERS] ECPG support for struct in INTO list

2009-08-05 Thread Boszormenyi Zoltan
Michael Meskes írta: > On Wed, Aug 05, 2009 at 11:08:26AM +0200, Boszormenyi Zoltan wrote: > >> I have looked at it. The code seems to be invalid. >> > > Yes, it is, I was too lazy to make it valid. If you just allocate the memory > for the variable in get_var()

Re: [HACKERS] status of ECPG patches?

2009-08-05 Thread Boszormenyi Zoltan
Michael Meskes írta: >> I confess I haven't been following the ECPG threads real closely, but >> I'm confused as to the status of the following two patches. Have you >> reviewed these? If so, what was the outcome? If not, do you plan to? >> > > I did a first review and then left for my vaca

Re: [HACKERS] ECPG support for struct in INTO list

2009-08-05 Thread Boszormenyi Zoltan
Michael Meskes írta: > On Wed, Aug 05, 2009 at 11:52:57AM +0200, Boszormenyi Zoltan wrote: > >> This means that what I did in my first patch for this >> problem in "add_struct_to_head()" (unrolling members >> of the struct) has to be done in adjust_informix

Re: [HACKERS] ECPG support for struct in INTO list

2009-08-05 Thread Boszormenyi Zoltan
Michael Meskes írta: > On Wed, Aug 05, 2009 at 11:08:26AM +0200, Boszormenyi Zoltan wrote: > >> I have looked at it. The code seems to be invalid. >> > > Yes, it is, I was too lazy to make it valid. If you just allocate the memory > for the variable in

Re: [HACKERS] ECPG support for struct in INTO list

2009-08-05 Thread Boszormenyi Zoltan
Michael Meskes írta: > On Fri, Jul 31, 2009 at 11:42:33AM +0200, Boszormenyi Zoltan wrote: > >> made me look around more. Find the attached patch I came up with. >> Now my previous test code works and produces similar C code >> as without "-C INF

Re: [HACKERS] Split-up ECPG patches

2009-08-03 Thread Boszormenyi Zoltan
Tom Lane írta: > Boszormenyi Zoltan writes: > >> new versions attached, updated to apply to the current CVS cleanly. >> > > Why is this messing with the core grammar? > > regards, tom lane > It was explained in earlier mails,

Re: [HACKERS] ECPG support for struct in INTO list

2009-07-31 Thread Boszormenyi Zoltan
Michael Meskes írta: > On Fri, Jul 17, 2009 at 03:58:21PM +0200, Boszormenyi Zoltan wrote: > >> Attached is the short example I can reproduce with. >> The version I used was final PostgreSQL 8.4.0, without our >> extensions posted already. I added an indication to ec

Re: [HACKERS] SELECT ... FOR UPDATE [WAIT integer | NOWAIT] for 8.5

2009-07-30 Thread Boszormenyi Zoltan
Alvaro Herrera írta: > Boszormenyi Zoltan wrote: > > >> The vague consensus for syntax options was that the GUC >> 'lock_timeout' and WAIT [N] extension (wherever NOWAIT >> is allowed) both should be implemented. >> >> Behaviour would be that N s

Re: [HACKERS] SELECT ... FOR UPDATE [WAIT integer | NOWAIT] for 8.5

2009-07-27 Thread Boszormenyi Zoltan
Alvaro Herrera írta: > Boszormenyi Zoltan wrote: > >> Alvaro Herrera írta: >> >>> Boszormenyi Zoltan wrote: >>> >>> >>>> The vague consensus for syntax options was that the GUC >>>> 'lock_timeout' and

Re: [HACKERS] SELECT ... FOR UPDATE [WAIT integer | NOWAIT] for 8.5

2009-07-27 Thread Boszormenyi Zoltan
Alvaro Herrera írta: > Boszormenyi Zoltan wrote: > > >> The vague consensus for syntax options was that the GUC >> 'lock_timeout' and WAIT [N] extension (wherever NOWAIT >> is allowed) both should be implemented. >> >> Behaviour would be that N s

Re: [HACKERS] SELECT ... FOR UPDATE [WAIT integer | NOWAIT] for 8.5

2009-07-27 Thread Boszormenyi Zoltan
Bruce Momjian írta: > Hans-Juergen Schoenig wrote: > >> hello everybody, >> >> from my side the goal of this discussion is to extract a consensus so >> that we can go ahead and implement this issue for 8.5. >> our customer here needs a solution to this problem and we have to come >> up with so

Re: [HACKERS] Split-up ECPG patches

2009-07-23 Thread Boszormenyi Zoltan
Michael Meskes írta: > On Wed, Jul 15, 2009 at 07:17:17PM +0200, Böszörményi Zoltán wrote: > >> as asked by Michael Meskes, I have split up our ECPG patchset: >> > > Just a couple quick comments. > > It appears to me (without much testing) that the patches still partly rely on > each other.

Re: [HACKERS] ECPG support for struct in INTO list

2009-07-17 Thread Boszormenyi Zoltan
Michael Meskes írta: > On Fri, Jul 17, 2009 at 12:27:49PM +0200, Boszormenyi Zoltan wrote: > >> one of our clients wants to port their application suite >> from Informix to PostgreSQL, they use constructs like >> >> SELECT * INTO :tablerec FROM table ... >> &

[HACKERS] ECPG support for struct in INTO list

2009-07-17 Thread Boszormenyi Zoltan
Hi, one of our clients wants to port their application suite from Informix to PostgreSQL, they use constructs like SELECT * INTO :tablerec FROM table ... where "tablerec" mirrors the table fields in a C struct. Currently ECPG dumps core on this, more exactly aborts on it in ecpg_type_name(). P

Re: [HACKERS] ECPG support for string pseudo-type

2009-07-13 Thread Boszormenyi Zoltan
Michael Meskes írta: > On Sat, Jul 04, 2009 at 05:09:04PM +0200, Boszormenyi Zoltan wrote: > >> OK, let me retry. This version treats "string" as a non-reserved word, >> and also discovers whether the PGC contains this construct below, >> as in ecpg/tests/pre

Re: [HACKERS] ECPG support for string pseudo-type

2009-07-13 Thread Boszormenyi Zoltan
Michael Meskes írta: > On Sat, Jul 04, 2009 at 03:39:14PM +0200, Boszormenyi Zoltan wrote: > >> The attached patch is built upon our previous patch supporting >> dynamic cursor and SQLDA. >> > > Please don't do this unless the new patch relies on s

Re: [HACKERS] ECPG support for string pseudo-type

2009-07-04 Thread Boszormenyi Zoltan
Hi, Tom Lane írta: > Boszormenyi Zoltan writes: > >> in a continued effort for better Informix ESQL/C compatibility, >> we added the "string" pseudo-type handling to ECPG. >> ... >> - "string" has become a type name, reserved word in ECPG.

[HACKERS] ECPG support for string pseudo-type

2009-07-04 Thread Boszormenyi Zoltan
Hi, in a continued effort for better Informix ESQL/C compatibility, we added the "string" pseudo-type handling to ECPG. This type in ESQL/C is documented as: -- The string Data Type The string data type is an ESQL/C data type that holds character d

Re: [HACKERS] SELECT ... FOR UPDATE [WAIT integer | NOWAIT] for 8.5

2009-05-11 Thread Boszormenyi Zoltan
Josh Berkus írta: > >> But more generally, what you are proposing seems largely duplicative >> with statement_timeout. The only reason I can see for a >> lock-wait-specific timeout is that you have a need to control the >> length of a specific wait and *not* the overall time spent. Hans >> alread

Re: [HACKERS] SELECT ... FOR UPDATE [WAIT integer | NOWAIT] for 8.5

2009-05-11 Thread Boszormenyi Zoltan
Greg Stark írta: > 2009/5/11 Boszormenyi Zoltan : > >> Does statement_timeout counts against subtransactions as well? No. >> If a statement finishes before statement_timeout, does it also decrease >> the possible runtime for the next statement? No. I was talking about

Re: [HACKERS] SELECT ... FOR UPDATE [WAIT integer | NOWAIT] for 8.5

2009-05-11 Thread Boszormenyi Zoltan
Tom Lane írta: > Boszormenyi Zoltan writes: > >> Tom Lane írta: >> >>> I think the way you're describing would be both harder to implement >>> and full of its own strange traps. >>> > > >> Why? >> >

Re: [HACKERS] SELECT ... FOR UPDATE [WAIT integer | NOWAIT] for 8.5

2009-05-11 Thread Boszormenyi Zoltan
Tom Lane írta: > Boszormenyi Zoltan writes: > >> Would the "lock_timeout" work for all to be acquired locks individually, >> or all of them combined for the statement? The individual application >> of the timeout for every locks individually wouldn't b

Re: [HACKERS] SELECT ... FOR UPDATE [WAIT integer | NOWAIT] for 8.5

2009-05-11 Thread Boszormenyi Zoltan
Hi, Tom Lane írta: > Hans-Juergen Schoenig writes: > >> i would like to propose an extension to our SELECT FOR UPDATE mechanism. >> especially in web applications it can be extremely useful to have the >> chance to terminate a lock after a given timeframe. >> > > I guess my immediate rea

[HACKERS] Constraint exclusion extension

2009-03-05 Thread Boszormenyi Zoltan
Hi, we have come across a theoretical problem with a GIS database, which I think worth discussing. The database table is partitioned, it's already larger than 30TB. The table is partitioned over the PostGIS && (overlaps) operator. However, when SELECTing from that table, it goes through all parti

Re: [HACKERS] 8.4 features presentation

2009-02-23 Thread Boszormenyi Zoltan
Bruce Momjian írta: > I have written a presentation about the major 8.4 features known so far: > > http://momjian.us/main/writings/pgsql/features.pdf > > Comments? Suggestions? Please email me offlist and I will update the > PDF. > > The title "Save termination of individual sessions" s

<    1   2   3   4   5