Re: cache lookup failed for function 0

2023-10-01 Thread Tom Lane
p...@pfortin.com writes: > I see the string "SET client_encoding = 'WIN1252';" in the dump -- some > files come from a remote colleague; but this has never been an issue > before... Hah! If I create the test database with encoding WIN1252 then your test fails as described. It *should* be complai

Re: cache lookup failed for function 0

2023-09-30 Thread pf
Hi Adrian & Tom, On Sat, 30 Sep 2023 15:57:32 -0700 Adrian Klaver wrote: >On 9/30/23 14:54, p...@pfortin.com wrote: >> On Sat, 30 Sep 2023 13:40:37 -0700 Adrian Klaver wrote: >> >>> On 9/30/23 11:32, p...@pfortin.com wrote: > >> >> As I told Tom, the "test" DB has this issue; the producti

Re: cache lookup failed for function 0

2023-09-30 Thread Tom Lane
Adrian Klaver writes: > On 9/30/23 14:54, p...@pfortin.com wrote: >> As I told Tom, the "test" DB has this issue; the production and test1 DBs >> are fine; I should have thought to check those first... Sorry for the >> noise. > Still there was an issue with a database. Did you track down what was

Re: cache lookup failed for function 0

2023-09-30 Thread Adrian Klaver
On 9/30/23 14:54, p...@pfortin.com wrote: On Sat, 30 Sep 2023 13:40:37 -0700 Adrian Klaver wrote: On 9/30/23 11:32, p...@pfortin.com wrote: As I told Tom, the "test" DB has this issue; the production and test1 DBs are fine; I should have thought to check those first... Sorry for the noise.

Re: cache lookup failed for function 0

2023-09-30 Thread pf
On Sat, 30 Sep 2023 13:40:37 -0700 Adrian Klaver wrote: >On 9/30/23 11:32, p...@pfortin.com wrote: >> On Sat, 30 Sep 2023 13:20:14 -0400 Tom Lane wrote: >> > >> As vanilla as it gets... Standard locale (C). The only odd thing that >> happened: a system update the other day installed and started

Re: cache lookup failed for function 0

2023-09-30 Thread Adrian Klaver
On 9/30/23 11:32, p...@pfortin.com wrote: On Sat, 30 Sep 2023 13:20:14 -0400 Tom Lane wrote: As vanilla as it gets... Standard locale (C). The only odd thing that happened: a system update the other day installed and started something called tracker-miners which I was not happy with: https://

Re: cache lookup failed for function 0

2023-09-30 Thread pf
On Sat, 30 Sep 2023 13:20:14 -0400 Tom Lane wrote: >p...@pfortin.com writes: >> Python script and sample file attached... > >This runs fine for me, both in HEAD and 15.4. > >(Well, it fails at the last GRANT, seemingly because you wrote >"{table}" not "{TABLE}". But the COPY goes through fine.)

Re: cache lookup failed for function 0

2023-09-30 Thread Tom Lane
p...@pfortin.com writes: > Python script and sample file attached... This runs fine for me, both in HEAD and 15.4. (Well, it fails at the last GRANT, seemingly because you wrote "{table}" not "{TABLE}". But the COPY goes through fine.) Assuming that you verified that this specific test case fai

Re: cache lookup failed for function 0

2023-09-30 Thread pf
On Sat, 30 Sep 2023 08:50:45 -0700 Adrian Klaver wrote: >On 9/30/23 07:01, p...@pfortin.com wrote: >> Hi Adrian,On Fri, 29 Sep 2023 14:27:48 -0700 Adrian Klaver wrote: >> >>> On 9/29/23 1:37 PM, p...@pfortin.com wrote: Hi, > >>> I'm going to say it is the >>> >>> ( -- import only a sub

Re: cache lookup failed for function 0

2023-09-30 Thread pf
On Fri, 29 Sep 2023 18:21:02 -0400 Tom Lane wrote: >p...@pfortin.com writes: >> As a test, rather than use INSERT, I recently wrote a python test script >> to import some 8M & 33M record files with COPY instead. These worked with >> last weekend's data dump. Next, I wanted to look into importing

Re: cache lookup failed for function 0

2023-09-30 Thread Adrian Klaver
On 9/30/23 07:01, p...@pfortin.com wrote: Hi Adrian,On Fri, 29 Sep 2023 14:27:48 -0700 Adrian Klaver wrote: On 9/29/23 1:37 PM, p...@pfortin.com wrote: Hi, I'm going to say it is the ( -- import only a subset of columns I suspect the -- comment is the issue. I wish it was that easy. It'

Re: cache lookup failed for function 0

2023-09-30 Thread Pierre Fortin
Ignore this message; I wondered where it went to -- Looks like I accidentally hit Ctrl+Enter; just did that to another... SIGH... On Sat, 30 Sep 2023 09:30:08 -0400 p...@pfortin.com wrote: >On Fri, 29 Sep 2023 14:27:48 -0700 Adrian Klaver wrote:

Re: cache lookup failed for function 0

2023-09-30 Thread pf
Hi Adrian,On Fri, 29 Sep 2023 14:27:48 -0700 Adrian Klaver wrote: >On 9/29/23 1:37 PM, p...@pfortin.com wrote: >> Hi, >> >> select version(); >> PostgreSQL 15.4 on x86_64-mageia-linux-gnu, >> compiled by gcc (Mageia 12.3.0-3.mga9) 12.3.0, 64-bit >> >> As a test, rather than use INSERT, I recently

Re: cache lookup failed for function 0

2023-09-29 Thread Tom Lane
p...@pfortin.com writes: > As a test, rather than use INSERT, I recently wrote a python test script > to import some 8M & 33M record files with COPY instead. These worked with > last weekend's data dump. Next, I wanted to look into importing a subset > of columns using the below logic; but I'm ge

Re: cache lookup failed for function 0

2023-09-29 Thread Adrian Klaver
On 9/29/23 1:37 PM, p...@pfortin.com wrote: Hi, select version(); PostgreSQL 15.4 on x86_64-mageia-linux-gnu, compiled by gcc (Mageia 12.3.0-3.mga9) 12.3.0, 64-bit As a test, rather than use INSERT, I recently wrote a python test script to import some 8M & 33M record files with COPY instead.