Re: Example code Re: Singleton SELECT inside cursor loop

2022-10-01 Thread Ron
On 10/1/22 15:42, Ron wrote: On 10/1/22 14:54, Christoph Moench-Tegeder wrote: ## Ron (ronljohnso...@gmail.com): The question then is "why am I just now seeing the problem?"  We've been using v12 for two years, and it just happened. The only recent change is that I upgraded it from RDS 12.10

Re: Example code Re: Singleton SELECT inside cursor loop

2022-10-01 Thread Ron
On 10/1/22 14:54, Christoph Moench-Tegeder wrote: ## Ron (ronljohnso...@gmail.com): The question then is "why am I just now seeing the problem?"  We've been using v12 for two years, and it just happened. The only recent change is that I upgraded it from RDS 12.10 to 12.11 a couple of weeks ago

Re: Example code Re: Singleton SELECT inside cursor loop

2022-10-01 Thread Christoph Moench-Tegeder
## Ron (ronljohnso...@gmail.com): > The question then is "why am I just now seeing the problem?"  We've been > using v12 for two years, and it just happened. > > The only recent change is that I upgraded it from RDS 12.10 to 12.11 a > couple of weeks ago. That's correlation, but no proof for c

Re: Example code Re: Singleton SELECT inside cursor loop

2022-10-01 Thread Ron
On 10/1/22 07:21, Christoph Moench-Tegeder wrote: ## Ron (ronljohnso...@gmail.com): Note how quickly it runs the first five times, but takes 780x longer the sixth time I run it.  Exiting psql and entering again causes the same slowness the sixth time it's run. Tanks at the sixth time? That rin

Re: Example code Re: Singleton SELECT inside cursor loop

2022-10-01 Thread Ron
On 10/1/22 07:20, Peter J. Holzer wrote: On 2022-10-01 02:22:22 -0500, Ron wrote: I extracted the singleton into a function, and that helped me isolate the problem. I don't know what a singleton select is (duckduckgo tells me it has something to do with DB2 and/or COBOL, or maybe it's a whisky)

Re: Example code Re: Singleton SELECT inside cursor loop

2022-10-01 Thread Christoph Moench-Tegeder
## Ron (ronljohnso...@gmail.com): > Note how quickly it runs the first five times, but takes 780x longer the > sixth time I run it.  Exiting psql and entering again causes the same > slowness the sixth time it's run. Tanks at the sixth time? That rings a bell: "The current rule for this is that

Re: Example code Re: Singleton SELECT inside cursor loop

2022-10-01 Thread Peter J. Holzer
On 2022-10-01 02:22:22 -0500, Ron wrote: > I extracted the singleton into a function, and that helped me isolate the > problem. I don't know what a singleton select is (duckduckgo tells me it has something to do with DB2 and/or COBOL, or maybe it's a whisky), but: > Note how quickly it runs the

Example code Re: Singleton SELECT inside cursor loop

2022-10-01 Thread Ron
I extracted the singleton into a function, and that helped me isolate the problem. Note how quickly it runs the first five times, but takes 780x longer the sixth time I run it.  Exiting psql and entering again causes the same slowness the sixth time it's run. sides=> select strans.TASK001785