Re: [HACKERS] C vs. C++ contributions

2002-08-28 Thread Mario Weilguni
> > feature of that type. But random misfeatures such as the join syntax or > > the decode() function are going to have a hard time getting accepted. > > But we have decode(): > > test=> \df decode > List of functions >Result data type | Schema | Nam

[HACKERS] tweaking MemSet() performance

2002-08-28 Thread Neil Conway
In include/c.h, MemSet() is defined to be different than the stock function memset() only when copying less than or equal to MEMSET_LOOP_LIMIT bytes (currently 64). The comments above the macro definition note: * We got the 64 number by testing this against the stock memset() on * BSD

Re: [HACKERS] [SQL] LIMIT 1 FOR UPDATE or FOR UPDATE LIMIT 1?

2002-08-28 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > Rod Taylor wrote: >> The above, or something along those lines, would show order >> independence. > It is this kind of added abstraction that I definitely want to avoid. I agree. We want to promote the LIMIT/FOR UPDATE ordering, not treat them on an

Re: [HACKERS] [Resend] Sprintf() auditing and a patch

2002-08-28 Thread Jukka Holappa
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Neil Conway wrote: | [ Sorry, never saw the original email ] Because it is still hanging in moderation queue ;) | FYI, we prefer patches in context diff format (diff -c). Also, there | are some code style rules that most of the backend code follows.

Re: [HACKERS] [SQL] LIMIT 1 FOR UPDATE or FOR UPDATE LIMIT 1?

2002-08-28 Thread Bruce Momjian
Rod Taylor wrote: > > > Yes, I thought about that. People want to show both SELECT syntaxes, > > but how would you do that --- show the SELECT syntax twice with just > > those last two clauses reversed --- yuck. > > select [ , ... ] > > : >[ FOR UPDATE | LIMIT ] > > > The above, or

Re: [HACKERS] [Resend] Sprintf() auditing and a patch

2002-08-28 Thread Neil Conway
[ Sorry, never saw the original email ] Bruce Momjian <[EMAIL PROTECTED]> writes: > Jukka Holappa wrote: > > I'm very new to this project and inspired by recent security > > release, I started to audit postgresql source against common > > mistakes with sprintf(). If you're interested, another co

Re: [HACKERS] Postgres problems

2002-08-28 Thread Tom Lane
"Christopher Kings-Lynne" <[EMAIL PROTECTED]> writes: > I seem to have recovered from my Postgres probs. I decided to do a vacuum > full to clean things up. I got this about halfway through: > usa=# vacuum full analyze; > ERROR: No one parent tuple was found > Any fix for that? Try a "SELECT

Re: [HACKERS] MemoryContextAlloc: invalid request size 1934906735

2002-08-28 Thread Tom Lane
"D'Arcy J.M. Cain" <[EMAIL PROTECTED]> writes: > Hmm. I did give it a harder look and look what jumped out. Both > chkpass_out and chkpass_rout return PG_RETURN_CSTRING but chkpass_out > builds a standard c string while chkpass_rout builds a variable text > structure. That can't be right. It's

[HACKERS] Postgres problems

2002-08-28 Thread Christopher Kings-Lynne
OK, I seem to have recovered from my Postgres probs. I decided to do a vacuum full to clean things up. I got this about halfway through: usa=# vacuum full analyze; ERROR: No one parent tuple was found Log: 2002-08-28 19:38:47 DEBUG: Index expiry_users_users_key: Pages 110; Tuples 41310: De

Re: [HACKERS] MemoryContextAlloc: invalid request size 1934906735

2002-08-28 Thread D'Arcy J.M. Cain
On August 28, 2002 09:23 am, Tom Lane wrote: > The behavior looks a lot like a memory clobber, so perhaps the key > variable is some difference in malloc's allocation strategy, causing > two items to be adjacent in NetBSD where they are not on the other > platforms we've tried. Here's some other

Re: [HACKERS] Serious problem with my postgres

2002-08-28 Thread Tom Lane
"Christopher Kings-Lynne" <[EMAIL PROTECTED]> writes: > After a crash and several restarts this morning, my postgres 7.2.1 is > running very oddly. > The processes are hanging in semwait or sbwait or biord states, but mostly > sbwait. Some random poking around in google says that sbwait state is

Re: [HACKERS] [SQL] LIMIT 1 FOR UPDATE or FOR UPDATE LIMIT 1?

2002-08-28 Thread Rod Taylor
> Yes, I thought about that. People want to show both SELECT syntaxes, > but how would you do that --- show the SELECT syntax twice with just > those last two clauses reversed --- yuck. select [ , ... ] : [ FOR UPDATE | LIMIT ] The above, or something along those lines, would show o

Re: [HACKERS] [SQL] LIMIT 1 FOR UPDATE or FOR UPDATE LIMIT 1?

2002-08-28 Thread Larry Rosenman
On Wed, 2002-08-28 at 21:29, Robert Treat wrote: > > I think after the LIMIT and FOR UPDATE explanations (but before the note about > SELECT privilege) you could add a note that "for backwards compatibility > reasons the LIMIT and FOR UPDATE clauses are interchangeable" though maybe > interch

Re: [HACKERS] [SQL] LIMIT 1 FOR UPDATE or FOR UPDATE LIMIT 1?

2002-08-28 Thread Robert Treat
On Wednesday 28 August 2002 09:14 pm, Bruce Momjian wrote: > Tom Lane wrote: > > Perhaps we could compromise on showing only the new syntax in the > > part of the man page, and then mentioning somewhere in the > > body of the page that the other order is deprecated but accepted for > > backwards

[HACKERS] Serious problem with my postgres

2002-08-28 Thread Christopher Kings-Lynne
Hi guys, After a crash and several restarts this morning, my postgres 7.2.1 is running very oddly. Every time you execute a query it basially takes forever. Some of them actually do take forever. eg: "select * from users" just hangs forever. As people use the site all available postgres slots

Re: [HACKERS] Open 7.3 items

2002-08-28 Thread One Way
Tom Lane: "And with the availability of schemas in 7.3, I think that multiple databases per installation is going to become less common to begin with --- people will more often use multiple schemas in one big database if they want the option of data sharing, or completely separate installations if

Re: [HACKERS] Concern about memory management with SRFs

2002-08-28 Thread Tom Lane
Joe Conway <[EMAIL PROTECTED]> writes: > Is it OK to use fcinfo->flinfo->fn_mcxt as the long term memory > context or is there a better choice? That is the correct choice. > Is funcctx->multi_call_memory_ctx a > suitable name in place of funcctx->fmctx? No objection here.

Re: [HACKERS] Concern about memory management with SRFs

2002-08-28 Thread Joe Conway
Tom Lane wrote: > I thought about that and didn't like it; it may simplify the simple case > but I think it actively gets in the way of less-simple cases. For > example, the FIRSTCALL code might generate some transient structures > along with ones that it wants to keep. Also, your recommended >

Re: [HACKERS] Concern about memory management with SRFs

2002-08-28 Thread Tom Lane
Joe Conway <[EMAIL PROTECTED]> writes: > Maybe SRF_FIRSTCALL_INIT()(init_MultiFuncCall()) should: > - save CurrentMemoryContext to funcctx->per_call_memory_ctx >(new member of the struct) > - save fcinfo->flinfo->fn_mcxt to funcctx->multi_call_memory_ctx >(nee funcctx->fmctx) > - leave fci

Re: [HACKERS] Concern about memory management with SRFs

2002-08-28 Thread Joe Conway
Tom Lane wrote: > I think we should document that any memory that is allocated in the > first call for use in subsequent calls must come from the memory context > saved in FuncCallContext (and let's choose a more meaningful name than > fmctx, please). This would mean adding code like > > o

Re: [HACKERS] VIRUS IN YOUR MAIL (W32/Klez.h@MM)

2002-08-28 Thread Bruce Momjian
Yes, I have recieved it. I assume it is bacause a virus is picking our email address from a mailbox as the "From:" and sending the virus to others. --- Tatsuo Ishii wrote: > Sorry for the off-topic article, but I wonder a

Re: [HACKERS] [PATCHES] fix for palloc() of user-supplied length

2002-08-28 Thread Bruce Momjian
It will, if a patch is supplied. Anything significant that is mentioned in the CVS logs gets shown in the release notes. --- Matthew T. O'Connor wrote: > > > > Anyone want to argue that we should keep the v0 protocol suppo

Re: [HACKERS] [SQL] LIMIT 1 FOR UPDATE or FOR UPDATE LIMIT 1?

2002-08-28 Thread Bruce Momjian
Tom Lane wrote: > >> If you would like a vote, we can do that, but as I remember we had the > >> same issue with COPY and we got most votes to just show the best syntax. > > Perhaps we could compromise on showing only the new syntax in the > part of the man page, and then mentioning somewhere in

Re: [HACKERS] VIRUS IN YOUR MAIL (W32/Klez.h@MM)

2002-08-28 Thread Tatsuo Ishii
Sorry for the off-topic article, but I wonder anyone has been received this kind of mail... I have been received following from [EMAIL PROTECTED] Is this mail really posted by [EMAIL PROTECTED]? If so, could someone on postgresql.org stop this kind of alert mail? I'm tired of these kind of mails.

Re: [HACKERS] [PATCHES] fix for palloc() of user-supplied length

2002-08-28 Thread Matthew T. O'Connor
> > > Anyone want to argue that we should keep the v0 protocol support any > > > longer? > > > > Nope, exactly the same thought crossed my mind while I was reading > > through the code... > > Feel free to rip it out. Should probably be mentioned in the release notes. -

Re: [HACKERS] [SQL] LIMIT 1 FOR UPDATE or FOR UPDATE LIMIT 1?

2002-08-28 Thread Tom Lane
>> If you would like a vote, we can do that, but as I remember we had the >> same issue with COPY and we got most votes to just show the best syntax. Perhaps we could compromise on showing only the new syntax in the part of the man page, and then mentioning somewhere in the body of the page that

Re: [HACKERS] [SQL] LIMIT 1 FOR UPDATE or FOR UPDATE LIMIT 1?

2002-08-28 Thread Robert Treat
On Wednesday 28 August 2002 05:06 pm, Bruce Momjian wrote: > Peter Eisentraut wrote: > > Bruce Momjian writes: > > > That SELECT syntax is already too confusing. I don't want to add an > > > additional documentation specification that provides no value to users. > > > > The value of the documenta

[HACKERS] Concern about memory management with SRFs

2002-08-28 Thread Tom Lane
I've been looking at the sample SRFs (show_all_settings etc) and am not happy about the way memory management is done. As the code is currently set up, the functions essentially assume that they are executed in a context that will never be reset until they're done returning tuples. (This is true

Re: [HACKERS] Timetable for 7.3 beta

2002-08-28 Thread Joe Conway
Bruce Momjian wrote: > With beta starting September 1, what time table do we want to have? Is > feature freeze September 1? When do we want to package up the beta1 > tarball? > > I will try to have the HISTORY/release.sgml file ready for September 1. > Since September 1 is a Sunday, how about

Re: [HACKERS] [Resend] Sprintf() auditing and a patch

2002-08-28 Thread Jukka Holappa
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bruce Momjian wrote: | I have reviewed your patch, and it is a thorough job. Unfortunately, | our code has drifted dramatically since 7.2 in the areas you patched. | Would you be able to download our CVS or current snapshot and submit a | patch based

[HACKERS] Timetable for 7.3 beta

2002-08-28 Thread Bruce Momjian
With beta starting September 1, what time table do we want to have? Is feature freeze September 1? When do we want to package up the beta1 tarball? I will try to have the HISTORY/release.sgml file ready for September 1. I am attaching the open items list. -- Bruce Momjian

Re: [HACKERS] [Resend] Sprintf() auditing and a patch

2002-08-28 Thread Bruce Momjian
I have reviewed your patch, and it is a thorough job. Unfortunately, our code has drifted dramatically since 7.2 in the areas you patched. Would you be able to download our CVS or current snapshot and submit a patch based on that code? In fact, we have applied a batch of snprintf fixes already

Re: [HACKERS] @(#)Mordre Labs advisory 0x0005: Several buffer overruns

2002-08-28 Thread Bruce Momjian
Your patch has been added to the PostgreSQL unapplied patches list at: http://candle.pha.pa.us/cgi-bin/pgpatches I will try to apply it within the next 48 hours. --- Neil Conway wrote: > Sir Mordred The Traitor <

Re: [HACKERS] [SQL] LIMIT 1 FOR UPDATE or FOR UPDATE LIMIT 1?

2002-08-28 Thread Bruce Momjian
Peter Eisentraut wrote: > Bruce Momjian writes: > > > That SELECT syntax is already too confusing. I don't want to add an > > additional documentation specification that provides no value to users. > > The value of the documentation, especially the reference manual, is that > it provides an aut

Re: [HACKERS] C vs. C++ contributions

2002-08-28 Thread Marc Lavergne
>> But we have decode(): It is a different decode function, more akin to "case when". >> Just to give you a fair warning: I'm not going to be in favor of adding any "Oracle compatibility" functionality that overlaps with existing and/or standardized functionality. I wouldn't even dream of

Re: [HACKERS] [SQL] LIMIT 1 FOR UPDATE or FOR UPDATE LIMIT 1?

2002-08-28 Thread Peter Eisentraut
Bruce Momjian writes: > That SELECT syntax is already too confusing. I don't want to add an > additional documentation specification that provides no value to users. The value of the documentation, especially the reference manual, is that it provides an authorative source of what works and what

Re: [HACKERS] @(#)Mordre Labs advisory 0x0005: Several buffer overruns in PostgreSQL

2002-08-28 Thread Neil Conway
Sir Mordred The Traitor <[EMAIL PROTECTED]> writes: > Upon invoking a polygon(integer, circle) function a > src/backend/utils/adt/geo_ops.c:circle_poly() function will gets > called, which suffers from a buffer overflow. > > 2) A src/backend/adt/utils/geo_ops.c:path_encode() fails to detect a > b

Re: [PATCHES] [HACKERS] Proposed GUC Variable

2002-08-28 Thread Bruce Momjian
Larry Rosenman wrote: > > > 3. Not sure what the "original" is for -- you're not transforming > > > anything. > > > > Agreed. Just call it "Error query". Seems clear to me. > What about rule(s) transformation(s)? Will we see the real query or the > transformed query? Well, looking at Gavin's

Re: [PATCHES] [HACKERS] Proposed GUC Variable

2002-08-28 Thread Larry Rosenman
On Wed, 2002-08-28 at 14:05, Bruce Momjian wrote: > Peter Eisentraut wrote: > > Gavin Sherry writes: > > > > > Attached is the patch. debug_print_error_query is set to false by default. > > > > > > For want of a better phrase, I've prepended 'original query: ' to the > > > error message to highli

Re: [PATCHES] [HACKERS] Proposed GUC Variable

2002-08-28 Thread Bruce Momjian
Peter Eisentraut wrote: > Gavin Sherry writes: > > > Attached is the patch. debug_print_error_query is set to false by default. > > > > For want of a better phrase, I've prepended 'original query: ' to the > > error message to highlight why it is in the log. > > >From your resident How-To-Name-S

Re: [HACKERS] tell Bugtraq about 7.2.2

2002-08-28 Thread Vince Vielhaber
On Wed, 28 Aug 2002, Lamar Owen wrote: > On Wednesday 28 August 2002 10:35 am, Marc G. Fournier wrote: > > having never had to do it before, do you know what the procedure is? > > Post to [EMAIL PROTECTED] -- it's moderated, and I don't know if > there's a subscription requirement. > Lamar poste

Re: [HACKERS] C vs. C++ contributions

2002-08-28 Thread Bruce Momjian
Peter Eisentraut wrote: > Marc Lavergne writes: > > > This covers a few different sub-projects so I'm breaking it down in > > order of how I'm going to attack it. > > Just to give you a fair warning: I'm not going to be in favor of adding > any "Oracle compatibility" functionality that overlaps

Re: [HACKERS] tell Bugtraq about 7.2.2

2002-08-28 Thread Lamar Owen
On Wednesday 28 August 2002 02:32 pm, Lamar Owen wrote: > On Wednesday 28 August 2002 10:35 am, Marc G. Fournier wrote: > > having never had to do it before, do you know what the procedure is? > > Post to [EMAIL PROTECTED] -- it's moderated, and I don't know if > there's a subscription requirement

Re: [HACKERS] MemoryContextAlloc: invalid request size 1934906735

2002-08-28 Thread D'Arcy J.M. Cain
On August 28, 2002 02:07 pm, D'Arcy J.M. Cain wrote: > I had also tried changing palloc.h and mcxt.c to turn MemoryContextAlloc() > into a macro that called a modified version of the real one to try to > narrow down where it was being called from but that wouldn't even run. Is > there another fil

Re: [HACKERS] tell Bugtraq about 7.2.2

2002-08-28 Thread Lamar Owen
On Wednesday 28 August 2002 10:35 am, Marc G. Fournier wrote: > having never had to do it before, do you know what the procedure is? Post to [EMAIL PROTECTED] -- it's moderated, and I don't know if there's a subscription requirement. -- Lamar Owen WGCR Internet Radio 1 Peter 4:11 -

[HACKERS] [Resend] Sprintf() auditing and a patch

2002-08-28 Thread Jukka Holappa
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 This is a resend of my previous email which was stucked at moderation approval.. and as I don't know if anyone actually does that in your list, I'm resending this now. Hi, I'm very new to this project and inspired by recent security release, I start

[HACKERS] Dumping user-specific configuration

2002-08-28 Thread Peter Eisentraut
... is now implemented. But alterations done to the bootstrap user are not dumped. This is consistent with the fact that other attributes such as the password are not dumped either. It would be rather involved to implement this, since at the time of the dump you don't know the name of the futur

Re: [PATCHES] [HACKERS] Proposed GUC Variable

2002-08-28 Thread Peter Eisentraut
Christopher Kings-Lynne writes: > Do you think that 'original query: ..' looks a bit like bad english? Should > it be properly capitalised? ie. 'Original query: ...'? Just nitpicking... I find it's generally better to not capitalize anything in program messages, unless the sentence/paragraph

Re: [PATCHES] [HACKERS] Proposed GUC Variable

2002-08-28 Thread Peter Eisentraut
Gavin Sherry writes: > Attached is the patch. debug_print_error_query is set to false by default. > > For want of a better phrase, I've prepended 'original query: ' to the > error message to highlight why it is in the log. >From your resident How-To-Name-Stuff Nitpicker: 1. The names of the deb

Re: [HACKERS] C vs. C++ contributions

2002-08-28 Thread Peter Eisentraut
Marc Lavergne writes: > This covers a few different sub-projects so I'm breaking it down in > order of how I'm going to attack it. Just to give you a fair warning: I'm not going to be in favor of adding any "Oracle compatibility" functionality that overlaps with existing and/or standardized fun

Re: [HACKERS] MemoryContextAlloc: invalid request size 1934906735

2002-08-28 Thread D'Arcy J.M. Cain
On August 28, 2002 12:48 pm, D'Arcy J.M. Cain wrote: > On August 28, 2002 09:23 am, Tom Lane wrote: > > The behavior looks a lot like a memory clobber, so perhaps the key > > variable is some difference in malloc's allocation strategy, causing > > two items to be adjacent in NetBSD where they are

Re: [HACKERS] MemoryContextAlloc: invalid request size 1934906735

2002-08-28 Thread D'Arcy J.M. Cain
On August 28, 2002 09:23 am, Tom Lane wrote: > The behavior looks a lot like a memory clobber, so perhaps the key > variable is some difference in malloc's allocation strategy, causing > two items to be adjacent in NetBSD where they are not on the other > platforms we've tried. Hmm. I might try

Re: [HACKERS] tell Bugtraq about 7.2.2

2002-08-28 Thread Henshall, Stuart - WCP
Title: RE: [HACKERS] tell Bugtraq about 7.2.2 oops, sorry your correct. - Stuart > -Original Message- > From: Gavin Sherry [mailto:[EMAIL PROTECTED]] > Sent: 28 August 2002 15:57 > To: Marc G. Fournier > Cc: Henshall, Stuart - WCP; '[EMAIL PROTECTED]' > Subject: Re: [HACKERS] tell Bu

Re: [HACKERS] PREPARE, FK's and VIEWs

2002-08-28 Thread Stephan Szabo
On Wed, 28 Aug 2002, Christopher Kings-Lynne wrote: > Now that we have prepared statements, should the foreign key code be changed > to use them? I think it's highly likely that they will be reused in a > connection. Might be an idea. It might be worth doing eventually just to standardize, but

Re: [HACKERS] tell Bugtraq about 7.2.2

2002-08-28 Thread Gavin Sherry
On Wed, 28 Aug 2002, Marc G. Fournier wrote: > > having never had to do it before, do you know what the procedure is? I thought the announcement was forwarded to Bugtraq by Lamar? --- Date: Fri, 23 Aug 2002 23:35:59 -0400 From: Lamar Owen <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Fwd:

Re: [HACKERS] tell Bugtraq about 7.2.2

2002-08-28 Thread Henshall, Stuart - WCP
Title: RE: [HACKERS] tell Bugtraq about 7.2.2 No idea sorry :( - Stuart > -Original Message- > From: Marc G. Fournier [mailto:[EMAIL PROTECTED]] > Sent: 28 August 2002 15:36 > To: Henshall, Stuart - WCP > Cc: '[EMAIL PROTECTED]' > Subject: Re: [HACKERS] tell Bugtraq about 7.2.2 > >

Re: [HACKERS] [SQL] LIMIT 1 FOR UPDATE or FOR UPDATE LIMIT 1?

2002-08-28 Thread Bruce Momjian
OK, applied with documenation updates showing only the new syntax. --- Tom Lane wrote: > Bruce Momjian <[EMAIL PROTECTED]> writes: > > Larry Rosenman wrote: > >> Why? If both old and new are acceptable, why not document it?

Re: [HACKERS] [SQL] LIMIT 1 FOR UPDATE or FOR UPDATE LIMIT 1?

2002-08-28 Thread Bruce Momjian
Rod Taylor wrote: > > Doesn't the need for a note explaining that we're supporting the old > > syntax say to you that the documentation also needs to say we support > > the old syntax? I can see the bug reports now saying "this is clearly > > not what it says in the docs"... > > > Yes, both shou

Re: [HACKERS] tell Bugtraq about 7.2.2

2002-08-28 Thread Marc G. Fournier
having never had to do it before, do you know what the procedure is? On Wed, 28 Aug 2002, Henshall, Stuart - WCP wrote: > Does someone from core want to inform bugtraq about 7.2.2? > Cheers, > - Stuart > > Westcountry Design & Print, > Heron Road, Sowton, Exeter. > EX2 7NF - also at - > 17 Bres

Re: [HACKERS] [SQL] LIMIT 1 FOR UPDATE or FOR UPDATE LIMIT 1?

2002-08-28 Thread Rod Taylor
On Wed, 2002-08-28 at 10:24, Robert Treat wrote: > On Wed, 2002-08-28 at 10:11, Tom Lane wrote: > > Bruce Momjian <[EMAIL PROTECTED]> writes: > > > Larry Rosenman wrote: > > >> Why? If both old and new are acceptable, why not document it? > > >> (Just curious, I'm not wedded to it). > > > > > W

Re: [HACKERS] [SQL] LIMIT 1 FOR UPDATE or FOR UPDATE LIMIT 1?

2002-08-28 Thread Bruce Momjian
Robert Treat wrote: > On Wed, 2002-08-28 at 10:11, Tom Lane wrote: > > Bruce Momjian <[EMAIL PROTECTED]> writes: > > > Larry Rosenman wrote: > > >> Why? If both old and new are acceptable, why not document it? > > >> (Just curious, I'm not wedded to it). > > > > > Well, showing both versions ad

Re: [HACKERS] [SQL] LIMIT 1 FOR UPDATE or FOR UPDATE LIMIT 1?

2002-08-28 Thread Bruce Momjian
Tom Lane wrote: > Bruce Momjian <[EMAIL PROTECTED]> writes: > > Larry Rosenman wrote: > >> Why? If both old and new are acceptable, why not document it? > >> (Just curious, I'm not wedded to it). > > > Well, showing both versions adds confusion for no good reason, > > Yes, particularly conside

Re: [HACKERS] [SQL] LIMIT 1 FOR UPDATE or FOR UPDATE LIMIT 1?

2002-08-28 Thread Robert Treat
On Wed, 2002-08-28 at 10:11, Tom Lane wrote: > Bruce Momjian <[EMAIL PROTECTED]> writes: > > Larry Rosenman wrote: > >> Why? If both old and new are acceptable, why not document it? > >> (Just curious, I'm not wedded to it). > > > Well, showing both versions adds confusion for no good reason, >

Re: [HACKERS] [SQL] LIMIT 1 FOR UPDATE or FOR UPDATE LIMIT 1?

2002-08-28 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > Larry Rosenman wrote: >> Why? If both old and new are acceptable, why not document it? >> (Just curious, I'm not wedded to it). > Well, showing both versions adds confusion for no good reason, Yes, particularly considering that LIMIT ... FOR UPDATE c

Re: [HACKERS] [SQL] LIMIT 1 FOR UPDATE or FOR UPDATE LIMIT 1?

2002-08-28 Thread Larry Rosenman
On Wed, 2002-08-28 at 08:52, Bruce Momjian wrote: > Larry Rosenman wrote: > > On Tue, 2002-08-27 at 23:29, Tom Lane wrote: > > > Bruce Momjian <[EMAIL PROTECTED]> writes: > > > > OK, patch attached. It was actually easier than I thought. We have to > > > > decide if we are going to remove the o

Re: [HACKERS] [SQL] LIMIT 1 FOR UPDATE or FOR UPDATE LIMIT 1?

2002-08-28 Thread Bruce Momjian
Larry Rosenman wrote: > On Tue, 2002-08-27 at 23:29, Tom Lane wrote: > > Bruce Momjian <[EMAIL PROTECTED]> writes: > > > OK, patch attached. It was actually easier than I thought. We have to > > > decide if we are going to remove the old syntax in 7.4. > > > > I'd say "no". There's no compell

Re: [HACKERS] PREPARE, FK's and VIEWs

2002-08-28 Thread Tom Lane
"Christopher Kings-Lynne" <[EMAIL PROTECTED]> writes: > Now that we have prepared statements, should the foreign key code be changed > to use them? I think it's highly likely that they will be reused in a > connection. Might be an idea. Waste of time; the FK code already does this for itself.

Re: [HACKERS] MemoryContextAlloc: invalid request size 1934906735

2002-08-28 Thread Tom Lane
"D'Arcy J.M. Cain" <[EMAIL PROTECTED]> writes: >> Could you try CVS tip on one of the boxes where you see the failure? >> That'd help to narrow down the issue. > Same issue. It must be a NetBSD issue but I can't think what. The behavior looks a lot like a memory clobber, so perhaps the key vari

Re: [HACKERS] Open 7.3 items

2002-08-28 Thread Tom Lane
Oliver Elphick <[EMAIL PROTECTED]> writes: > If we go to a thorough solution for virtual local databases, local users > of other databases ought to be completely invisible. Perhaps. I'm not convinced of that, but it's a defensible position. > I can't see how a group within a local database coul

Re: [HACKERS] [SQL] LIMIT 1 FOR UPDATE or FOR UPDATE LIMIT 1?

2002-08-28 Thread Larry Rosenman
On Tue, 2002-08-27 at 23:29, Tom Lane wrote: > Bruce Momjian <[EMAIL PROTECTED]> writes: > > OK, patch attached. It was actually easier than I thought. We have to > > decide if we are going to remove the old syntax in 7.4. > > I'd say "no". There's no compelling reason to break backward > com

[HACKERS] @(#)Mordre Labs advisory 0x0005: Several buffer overruns in PostgreSQL

2002-08-28 Thread Sir Mordred The Traitor
//@(#) Mordred Labs advisory 0x0005 Release data: 23/08/02 Name: Several buffer overruns in PostgreSQL Versions affected: all versions Risk: from average to low --[ Description: PostgreSQL provides you with several builint geo types (circle,polygon,box...etc). Unfortunately the code for geo f

[HACKERS] tell Bugtraq about 7.2.2

2002-08-28 Thread Henshall, Stuart - WCP
Title: tell Bugtraq about 7.2.2 Does someone from core want to inform bugtraq about 7.2.2? Cheers, - Stuart Westcountry Design & Print, Heron Road, Sowton, Exeter. EX2 7NF - also at - 17 Brest Road, Derriford, Plymouth. PL6 5AA England www.westcountry-design-print.co.uk

Re: [HACKERS] [SQL] LIMIT 1 FOR UPDATE or FOR UPDATE LIMIT 1?

2002-08-28 Thread Magnus Enbom
On Tue, Aug 27, 2002 at 10:45:24PM -0400, Bruce Momjian wrote: > > OK, patch attached. It was actually easier than I thought. We have to > decide if we are going to remove the old syntax in 7.4. > > Regression tests pass. No doc updates yet. Thanks alot! I don't mind keeping the old syntax.

Re: [HACKERS] MemoryContextAlloc: invalid request size 1934906735

2002-08-28 Thread D'Arcy J.M. Cain
On August 27, 2002 06:20 pm, Tom Lane wrote: > "D'Arcy J.M. Cain" <[EMAIL PROTECTED]> writes: > > How about that --enable-multibyte? > > --enable-multibyte is default (indeed only) option on CVS tip, > so that's not it. Ditto locale. > > Could you try CVS tip on one of the boxes where you see the

Re: [PATCHES] [HACKERS] Proposed GUC Variable

2002-08-28 Thread Christopher Kings-Lynne
I tested this patch and I can confirm that it works very well on FreeBSD/Alpha! This is such a cool feature - it's going to make my life so much easier! Do you think that 'original query: ..' looks a bit like bad english? Should it be properly capitalised? ie. 'Original query: ...'? Just nitp

Re: [HACKERS] [SQL] LIMIT 1 FOR UPDATE or FOR UPDATE LIMIT 1?

2002-08-28 Thread Zeugswetter Andreas SB SD
> My guess, seeing as very few probably use LIMIT and FOR UPDATE together, > is to swap them and document it in the release notes. Was I correct in > my guess? Sounds good to me. Andreas ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postma