Re: [HACKERS] NOLOGGING option, or ?

2005-06-01 Thread Bruce Momjian
Luke Lonergan wrote: Tom, ... and instead, define some new behavior that will soon be considered broken legacy code itself? I'll not argue further about whether to have a separate LOAD command. That's not as important as fixing the performance issues in the data load path in

Re: [HACKERS] [PATCHES] Adding \x escape processing to COPY, psql, backend

2005-06-01 Thread Bruce Momjian
Patch applied. Thanks for the COPY \x patch. --- Bruce Momjian wrote: Tom Lane wrote: Bruce Momjian pgman@candle.pha.pa.us writes: Here is a new version of the three \x hex support patches. I have added \x for

Re: [HACKERS] NOLOGGING option, or ?

2005-06-01 Thread Luke Lonergan
Bruce, Yep, you have to double backslahses coming in as data so we can use backslash for marking null, delimiters, etc. I see no way around that, and no one since Berkeley has come up with one either. If you have an idea, we would _love_ to hear it. Apropos to the previous thread on escape

Re: [HACKERS] NOLOGGING option, or ?

2005-06-01 Thread Luke Lonergan
Yep, we would _love_ those improvements. Coming soon, probably from the guy you've never heard of :-) I am confused why you are confused. :-) Uh, how do you do the escapes if you don't double the escape character on input so you can distinguish a literal escape from one use to mark

Re: [HACKERS] Can we simplify win32 threading code

2005-06-01 Thread Qingqing Zhou
Magnus Hagander [EMAIL PROTECTED] Why not just use the pid in teh name, and have one segment per backend? Being used only for signals you mean? That might work. That was my idea. We'll end up using three global namespace objects (mutex+event+shared memory) instead of one (named

Re: [HACKERS] NOLOGGING option, or ?

2005-06-01 Thread Oliver Jowett
Luke Lonergan wrote: I propose an extended syntax to COPY with a change in semantics to remove the default of WITH ESCAPE '\'. Er, doesn't this break existing database dumps? -O ---(end of broadcast)--- TIP 3: if posting/reading through

Re: [HACKERS] NOLOGGING option, or ?

2005-06-01 Thread Bruce Momjian
Luke Lonergan wrote: Yep, we would _love_ those improvements. Coming soon, probably from the guy you've never heard of :-) LOL I am confused why you are confused. :-) Uh, how do you do the escapes if you don't double the escape character on input so you can distinguish

Re: [HACKERS] NOLOGGING option, or ?

2005-06-01 Thread Bruce Momjian
Oliver Jowett wrote: Luke Lonergan wrote: I propose an extended syntax to COPY with a change in semantics to remove the default of WITH ESCAPE '\'. Er, doesn't this break existing database dumps? Right, we will not change the default. -- Bruce Momjian|

Re: [HACKERS] NOLOGGING option, or ?

2005-06-01 Thread Luke Lonergan
Oliver, On 6/1/05 7:13 PM, Oliver Jowett [EMAIL PROTECTED] wrote: Luke Lonergan wrote: I propose an extended syntax to COPY with a change in semantics to remove the default of WITH ESCAPE '\'. Er, doesn't this break existing database dumps? Yes, one of the previously stated reasons to

Re: [HACKERS] NOLOGGING option, or ?

2005-06-01 Thread Luke Lonergan
How do you distinguis an escape-delimiter used to escape a delimiter in the data from a literal escape-delimiter in the data being loaded --- it seems impossible to do. The usual approach is fine - a pair of escapes is equivalent to a literal escape. Or are you saying there would be no

Re: [HACKERS] NOLOGGING option, or ?

2005-06-01 Thread Steve Atkins
On Wed, Jun 01, 2005 at 07:35:33PM -0700, Luke Lonergan wrote: I propose an extended syntax to COPY with a change in semantics to remove the default of WITH ESCAPE '\'. Er, doesn't this break existing database dumps? Yes, one of the previously stated reasons to create another command

[HACKERS] SELECT FOR UPDATE and UNION ALL

2005-06-01 Thread Christopher Kings-Lynne
Is there any reason we can't have SELECT FOR UPDATE on union ALL queries? Chris ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings

Re: [HACKERS] NOLOGGING option, or ?

2005-06-01 Thread Alvaro Herrera
On Wed, Jun 01, 2005 at 10:35:30AM -0700, Alon Goldshuv wrote: 2) A modified command syntax for introducing a direct single row error handling. By direct I mean - a row that if rejected from within the COPY command context does not throw an error and rollsback the whole transaction. Instead

Re: [HACKERS] NOLOGGING option, or ?

2005-06-01 Thread Luke Lonergan
Steve, I've been following this thread, and I'm a little confused. Could you possibly clarify what you mean, by providing a couple of lines of input as it would be formatted with escape processing turned off - containing a text field with an embedded newline and tab and a null field. Using

Re: [HACKERS] NOLOGGING option, or ?

2005-06-01 Thread Alon Goldshuv
yeah, this is all a bit confusing, but I *hope* I can clarify things here as I think I got a better understanding now. before that, let me just clarify that the performance improvements in the patch have nothing to do with the escaping mechanizm. Escapes could change. The performance gain in

Re: [HACKERS] NOLOGGING option, or ?

2005-06-01 Thread Alon Goldshuv
I've been following this thread, and I'm a little confused. Could you possibly clarify what you mean, by providing a couple of lines of input as it would be formatted with escape processing turned off - containing a text field with an embedded newline and tab and a null field. yeah, this is all

Re: [HACKERS] NOLOGGING option, or ?

2005-06-01 Thread Luke Lonergan
Steve, Oops. Example below should have read differently: Sample with 2 identical rows (with binary representations depicted between ): Blahblah0xaablahblah0x09blahblah0x00blahblah0xaaBlahblah0xaablahbl ah0x09blahblah0x00blahblah0xaa

Re: [HACKERS] NOLOGGING option, or ?

2005-06-01 Thread Alvaro Herrera
On Thu, Jun 02, 2005 at 12:30:01AM -0400, Alon Goldshuv wrote: before that, let me just clarify that the performance improvements in the patch have nothing to do with the escaping mechanizm. Escapes could change. The performance gain in due to a buffered processing with minimal line/attribute

<    1   2