Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Your computer account is overdrawn. Please see Big Brother.


devel / comp.databases.ingres / Re: OLD_COPY_DN gotcha (or rather, got my customer)

SubjectAuthor
* OLD_COPY_DN gotcha (or rather, got my customer)Roy Hann
`* OLD_COPY_DN gotcha (or rather, got my customer)G Jones
 +* OLD_COPY_DN gotcha (or rather, got my customer)Colin Hay
 |`- OLD_COPY_DN gotcha (or rather, got my customer)Roy Hann
 `- OLD_COPY_DN gotcha (or rather, got my customer)Paul White

1
OLD_COPY_DN gotcha (or rather, got my customer)

<uck9v8$25vto$1@dont-email.me>

  copy mid

http://rslight.i2p/devel/article-flat.php?id=272&group=comp.databases.ingres#272

  copy link   Newsgroups: comp.databases.ingres
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: specially@processed.almost.meat (Roy Hann)
Newsgroups: comp.databases.ingres
Subject: OLD_COPY_DN gotcha (or rather, got my customer)
Date: Tue, 29 Aug 2023 08:24:08 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <uck9v8$25vto$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 29 Aug 2023 08:24:08 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ed36f1c354d96e2f3db9f23cf58352e8";
logging-data="2293688"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+mrbCPrmuH4fPMs7SRizNdBeGfSp71Rr4="
User-Agent: XPN/1.2.6 (Street Spirit ; Windows)
Cancel-Lock: sha1:ZrgjoSyTwTi1knxi1juM/yy+8Sc=
 by: Roy Hann - Tue, 29 Aug 2023 08:24 UTC

Anyone who still hangs out here will know I was doing an 11.2 upgrade
for a customer over the weekend.

It all went smoothly, except one job that had made it through UAT but
started failing when they went live. The job used COPY...FROM to load
data from flat files. The format specification used the "d" (dummy)
specification to skip junk.

It has come to light that the behaviour of the dummy specification
changed in 11.1. You can read about it by looking up SET SESSION
OLD_COPY_DN in the SQL Guide. As far as I can tell you can't read about
it anywhere else...like say, in the Installation Guide.

Roy

Re: OLD_COPY_DN gotcha (or rather, got my customer)

<8706eb04-3fac-450d-bec3-fce96a7c24e4n@googlegroups.com>

  copy mid

http://rslight.i2p/devel/article-flat.php?id=273&group=comp.databases.ingres#273

  copy link   Newsgroups: comp.databases.ingres
X-Received: by 2002:a05:620a:3b17:b0:76e:f149:fb3b with SMTP id tl23-20020a05620a3b1700b0076ef149fb3bmr27582qkn.9.1693379383370;
Wed, 30 Aug 2023 00:09:43 -0700 (PDT)
X-Received: by 2002:a05:6a00:2d0d:b0:68c:6a:aa65 with SMTP id
fa13-20020a056a002d0d00b0068c006aaa65mr568116pfb.0.1693379382862; Wed, 30 Aug
2023 00:09:42 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.databases.ingres
Date: Wed, 30 Aug 2023 00:09:42 -0700 (PDT)
In-Reply-To: <uck9v8$25vto$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=163.1.206.129; posting-account=WeWzrgoAAADuZDdxDgTJ3OtwovooLFLl
NNTP-Posting-Host: 163.1.206.129
References: <uck9v8$25vto$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <8706eb04-3fac-450d-bec3-fce96a7c24e4n@googlegroups.com>
Subject: Re: OLD_COPY_DN gotcha (or rather, got my customer)
From: geraint.jones@ndph.ox.ac.uk (G Jones)
Injection-Date: Wed, 30 Aug 2023 07:09:43 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1381
 by: G Jones - Wed, 30 Aug 2023 07:09 UTC

It's in the 'patchbugs' doc, though surprisingly not marked with "attention".
On reading that bug description again the last bit worries me.
"Please note that using d0 and text(0) continues to be unsafe. They produces undefined behaviour".
Hmm. We use 'text(0)' quite frequently.

Re: OLD_COPY_DN gotcha (or rather, got my customer)

<73dbb2cc-edbd-48f6-a95b-8bba0b96f1e3n@googlegroups.com>

  copy mid

http://rslight.i2p/devel/article-flat.php?id=275&group=comp.databases.ingres#275

  copy link   Newsgroups: comp.databases.ingres
X-Received: by 2002:a05:622a:1a8d:b0:40f:f22c:2a3b with SMTP id s13-20020a05622a1a8d00b0040ff22c2a3bmr60958qtc.3.1693393464226;
Wed, 30 Aug 2023 04:04:24 -0700 (PDT)
X-Received: by 2002:a17:902:d4c9:b0:1bb:8c42:79f4 with SMTP id
o9-20020a170902d4c900b001bb8c4279f4mr609029plg.2.1693393463795; Wed, 30 Aug
2023 04:04:23 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.databases.ingres
Date: Wed, 30 Aug 2023 04:04:23 -0700 (PDT)
In-Reply-To: <8706eb04-3fac-450d-bec3-fce96a7c24e4n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=159.196.169.115; posting-account=yp7j2goAAAAA-Z8S8RaGYYecWJkthAkM
NNTP-Posting-Host: 159.196.169.115
References: <uck9v8$25vto$1@dont-email.me> <8706eb04-3fac-450d-bec3-fce96a7c24e4n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <73dbb2cc-edbd-48f6-a95b-8bba0b96f1e3n@googlegroups.com>
Subject: Re: OLD_COPY_DN gotcha (or rather, got my customer)
From: wobble7@hotmail.com (Colin Hay)
Injection-Date: Wed, 30 Aug 2023 11:04:24 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1598
 by: Colin Hay - Wed, 30 Aug 2023 11:04 UTC

On Wednesday, 30 August 2023 at 17:09:44 UTC+10, G Jones wrote:
> It's in the 'patchbugs' doc, though surprisingly not marked with "attention".
> On reading that bug description again the last bit worries me.
> "Please note that using d0 and text(0) continues to be unsafe. They produces undefined behaviour".
> Hmm. We use 'text(0)' quite frequently.

We use d0 quite frequently too - whats the alternative ?

Re: OLD_COPY_DN gotcha (or rather, got my customer)

<ucnc5b$2nra4$1@dont-email.me>

  copy mid

http://rslight.i2p/devel/article-flat.php?id=276&group=comp.databases.ingres#276

  copy link   Newsgroups: comp.databases.ingres
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: specially@processed.almost.meat (Roy Hann)
Newsgroups: comp.databases.ingres
Subject: Re: OLD_COPY_DN gotcha (or rather, got my customer)
Date: Wed, 30 Aug 2023 12:19:55 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <ucnc5b$2nra4$1@dont-email.me>
References: <uck9v8$25vto$1@dont-email.me> <8706eb04-3fac-450d-bec3-fce96a7c24e4n@googlegroups.com> <73dbb2cc-edbd-48f6-a95b-8bba0b96f1e3n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 30 Aug 2023 12:19:55 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="44c2c5b627dcd88b3804906edf8c0e71";
logging-data="2878788"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/19SWzYbHWbp0Uew3XhVxHjPJRePnxLz4="
User-Agent: XPN/1.2.6 (Street Spirit ; Windows)
Cancel-Lock: sha1:riRDI9EGANr/2UUMagqLIwj6gII=
 by: Roy Hann - Wed, 30 Aug 2023 12:19 UTC

Colin Hay wrote:

> On Wednesday, 30 August 2023 at 17:09:44 UTC+10, G Jones wrote:
>> It's in the 'patchbugs' doc, though surprisingly not marked with "attention".
>> On reading that bug description again the last bit worries me.
>> "Please note that using d0 and text(0) continues to be unsafe. They produces undefined behaviour".
>> Hmm. We use 'text(0)' quite frequently.
>
> We use d0 quite frequently too - whats the alternative ?

SET SESSION OLD_COPY_DN;

Or as Paul Mason points out, you can configure it globally in CBF. You
may need to first do:

iiinitres old_copy_dn

Roy

Re: OLD_COPY_DN gotcha (or rather, got my customer)

<2e446c32-91d3-43e8-9f76-b7e79d2a5f96n@googlegroups.com>

  copy mid

http://rslight.i2p/devel/article-flat.php?id=288&group=comp.databases.ingres#288

  copy link   Newsgroups: comp.databases.ingres
X-Received: by 2002:ac8:598d:0:b0:40e:a616:6b5c with SMTP id e13-20020ac8598d000000b0040ea6166b5cmr29855qte.2.1694581257405;
Tue, 12 Sep 2023 22:00:57 -0700 (PDT)
X-Received: by 2002:a05:6870:b7a7:b0:1c8:ca3b:271c with SMTP id
ed39-20020a056870b7a700b001c8ca3b271cmr463721oab.6.1694581256942; Tue, 12 Sep
2023 22:00:56 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.databases.ingres
Date: Tue, 12 Sep 2023 22:00:56 -0700 (PDT)
In-Reply-To: <8706eb04-3fac-450d-bec3-fce96a7c24e4n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=49.197.162.78; posting-account=dyAZ7QoAAADC1de9O1cMRM3Rqqi1tDzJ
NNTP-Posting-Host: 49.197.162.78
References: <uck9v8$25vto$1@dont-email.me> <8706eb04-3fac-450d-bec3-fce96a7c24e4n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2e446c32-91d3-43e8-9f76-b7e79d2a5f96n@googlegroups.com>
Subject: Re: OLD_COPY_DN gotcha (or rather, got my customer)
From: shift7solutions@gmail.com (Paul White)
Injection-Date: Wed, 13 Sep 2023 05:00:57 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3076
 by: Paul White - Wed, 13 Sep 2023 05:00 UTC

On Wednesday, August 30, 2023 at 5:09:44 PM UTC+10, G Jones wrote:
> It's in the 'patchbugs' doc, though surprisingly not marked with "attention".
> On reading that bug description again the last bit worries me.
> "Please note that using d0 and text(0) continues to be unsafe. They produces undefined behaviour".
> Hmm. We use 'text(0)' quite frequently.

I found these entry in Patch Bugs

First mentioned in P15477

Bug 135261 II-4611 (ATTENTION, GENERIC)
Add a CBF parameter 'old_copy_dn' which reverts the default behaviour of a copy dummy format to the behaviour prior to the fix for bug 134443.
Previously a format of "col1 = Dn" would skip over n characters when doing a COPY FROM. However a COPY INTO would write the column name ("col1") n times. The fix for 134443 made these the same so that COPY FROM now skips n * length of column name (n * 4 in this example).
After applying this patch the new parameter is available. To add it to an existing installation first create it with the following command:

iiinitres old_copy_dn

This will add it with its default value of OFF. To enable the old behaviour set it to ON in CBF.
This behaviour can also be changed at the session level using:
SET SESSION [NO]OLD_COPY_DN

And from P15682
Bug 138448 II-7901 (GENERIC)

COPY column formats d0 and text(0) must have a delimiter defined to be able to be safely unloaded and reloaded. For backwards compatibility the old_copy_dn config paramter and the "SET SESSION OLD_COPY_DN" statements were added. With the old behaviour selected some COPY statements still fail with "E_US16F0 COPY: Column 'nl', format 'd0' requires a delimiter." Please note that using d0 and text(0) continues to be unsafe. They produces undefined behaviour and reloads are likely to fail.


devel / comp.databases.ingres / Re: OLD_COPY_DN gotcha (or rather, got my customer)

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor