Re: Simple task with partitioning which I can't realize

2022-03-02 Thread Mladen Gogala
partitioning but to use much larger machine with the NVME disks, which can handle the necesary I/O. Are there any plans to allow global indexes? I am aware that this is not a small change but is the only real advantage that Oracle holds over PostgreSQL. Regards -- Mladen Gogala Database Consultant Tel: (347) 321-1217 https://dbwhisperer.wordpress.com

XA transactions much slower on 14.2 than on 13.5

2022-03-04 Thread Mladen Gogala
ody else encountered this problem? When I say "XA transactions are much slower", I mean that commit and/or rollback take much longer. The SQL execution takes the same and the plans are identical to the 13.5 version. The application code is the same, using IBM WebSphere 9.0.4. Regards

Re: HIGH IO and Less CPU utilization

2022-03-31 Thread Mladen Gogala
ould probably help you with that schema. Other than that, do you have a SQL causing all this ruckus and a detailed explain plan ("explain (analyze,costs,buffers)") for the SQL using most of the time? You can analyze the log file with PgBadger to get the queries consuming the most

Re: Postgresql TPS Bottleneck

2022-03-31 Thread Mladen Gogala
queries are time consuming and try optimizing them. -- Mladen Gogala Database Consultant Tel: (347) 321-1217 https://dbwhisperer.wordpress.com

Re: Catching up with performance & PostgreSQL 15

2022-11-28 Thread Mladen Gogala
s also an increase in CPU consumption. I wasn't doing benchmarks, I was looking for a generic settings to install via Ansible so I don't have the numbers, only the feeling. One way of quantifying the difference would be to run pgbench with and without JIT. PS: I am still an Oracle

Re: Catching up with performance & PostgreSQL 15

2022-11-29 Thread Mladen Gogala
On 11/29/22 03:31, Alvaro Herrera wrote: On 2022-Nov-28, Mladen Gogala wrote: You'll probably be glad to learn that we have hints now. What hints are you talking about? As I understand, we still don't have Oracle-style query hints. https://github.com/ossc-db/pg_hint_plan -- Mla

Re: Catching up with performance & PostgreSQL 15

2022-11-29 Thread Mladen Gogala
On 11/29/22 03:36, Alvaro Herrera wrote: On 2022-Nov-28, Mladen Gogala wrote: As for JIT, I've recently asked that question myself. I was told that PostgreSQL with LLVM enabled performs approximately 25% better than without it. Hmm, actually, normally you're better off turni

Re: Catching up with performance & PostgreSQL 15

2022-11-29 Thread Mladen Gogala
On Tue, 2022-11-29 at 19:09 +0100, Alvaro Herrera wrote: > On 2022-Nov-29, Mladen Gogala wrote: > > > Hmmm, I think I will run pgbench with and without JIT on and see > > the > > difference. > > I doubt you'll notice anything, because the pgbench queries wil

Re: Postgres using the wrong index index

2021-08-11 Thread Mladen Gogala
stom_2 index. It uses the index I expect and it's much faster. Here's <https://explain.depesz.com/s/KBgG> a plan if we disable index scans. It uses both indexes and is much faster. -- Mladen Gogala Database Consultant Tel: (347) 321-1217 https://dbwhisperer.wordpress.com

Re: Big Performance drop of Exceptions in UDFs between V11.2 and 13.4

2021-08-21 Thread Mladen Gogala
4.582 ms (00:03.115) -- Mladen Gogala Database Consultant Tel: (347) 321-1217 https://dbwhisperer.wordpress.com

EnterpriseDB

2021-09-13 Thread Mladen Gogala
? Regards -- Mladen Gogala Database Consultant Tel: (347) 321-1217 https://dbwhisperer.wordpress.com

Re: Better, consistent instrumentation for postgreSQL using a similar API as Oracle

2021-10-04 Thread Mladen Gogala
o do. I wouldn't be surprised to see you giving haughty lectures about programming to Brian Kernighan or Dennis Ritchie. And yes, those two have allegedly also written a book. Regards -- Mladen Gogala Database Consultant Tel: (347) 321-1217 https://dbwhisperer.wordpress.com

Re: Better, consistent instrumentation for postgreSQL using a similar API as Oracle

2021-10-04 Thread Mladen Gogala
I am sincerely grateful. Of course, PostgreSQL now has query hints. -- Mladen Gogala Database Consultant Tel: (347) 321-1217 https://dbwhisperer.wordpress.com

Re: Better, consistent instrumentation for postgreSQL using a similar API as Oracle

2021-10-04 Thread Mladen Gogala
ging or smart. If you want consulting jobs in big banks and for a decent money, you might just take Oracle people seriously. Have you ever wondered why Oracle has so many customers despite the fact that it's so freakishly expensive? -- Mladen Gogala Database Consultant Tel: (347) 321-1217 https://dbwhisperer.wordpress.com

Re: Better, consistent instrumentation for postgreSQL using a similar API as Oracle

2021-10-05 Thread Mladen Gogala
even more clear. As for Jeff, I don't need to 'champion him'. He did that all by himself. In his place, I would simply ignore both this topic and you, Mr. Postgres Community. -- Mladen Gogala Database Consultant Tel: (347) 321-1217 https://dbwhisperer.wordpress.com

Re: Better, consistent instrumentation for postgreSQL using a similar API as Oracle

2021-10-05 Thread Mladen Gogala
e same weight, by far. However, I do believe that we may not see Jeff Holt again on this group so I am providing my opinion instead. At least I would, in Jeff's place, be reluctant to return to this group. -- Mladen Gogala Database Consultant Tel: (347) 321-1217 https://dbwhisperer.wordpress.com

Re: Better, consistent instrumentation for postgreSQL using a similar API as Oracle

2021-10-05 Thread Mladen Gogala
bered for generations to come. Or not. Laurenz will probably tell you that we don't top-post in Postgres community. He's good with rules, regulations and the way things are done in Postgres community. -- Mladen Gogala Database Consultant Tel: (347) 321-1217 https://dbwhisperer.wordpress.com

Re: Troubleshooting a long running delete statement

2021-10-06 Thread Mladen Gogala
what the busy processes are doing using strace -e trace=file and, for good measure, 'perf top". Regards -- Mladen Gogala Database Consultant Tel: (347) 321-1217 https://dbwhisperer.wordpress.com

Re: [EXT] Re: Troubleshooting a long running delete statement

2021-10-06 Thread Mladen Gogala
contact support. They may use strace for you. -- Mladen Gogala Database Consultant Tel: (347) 321-1217 https://dbwhisperer.wordpress.com

Re: [EXT] Re: Troubleshooting a long running delete statement

2021-10-06 Thread Mladen Gogala
On 10/6/21 16:32, Dirschel, Steve wrote: postgres=# explain (analyze) delete from t;  Delete on t I would try explain (analyze, timing, buffers). That would also give you the timing of each step so you can figure which one takes the longes. Regards -- Mladen Gogala Database Consultant

Re: Better, consistent instrumentation for postgreSQL using a similar API as Oracle

2021-10-07 Thread Mladen Gogala
for the automatic cleanup of the traceand core dump files. Sometimes they did fill the file system. As for the "tracing vs. sampling" debate, Oracle has both. V$ACTIVE_SESSION_HISTORY is a sampling view. Sampling views are more practical, especially when there are pooled connect

Re: Better, consistent instrumentation for postgreSQL using a similar API as Oracle

2021-10-08 Thread Mladen Gogala
to this discussion, I discovered Bloom extension. Bloom indexes are phenomenally useful. I apologize for the digression. -- Mladen Gogala Database Consultant Tel: (347) 321-1217 https://dbwhisperer.wordpress.com

Re: Lock contention high

2021-10-12 Thread Mladen Gogala
uses an in-memory queue manager which is, generally speaking, very fast. Applications usually do stupid things. I've seen GUI doing "SELECT FOR UPDATE". And then the operator decided to have lunch. I'll leave the rest to your imagination. -- Mladen Gogala Database Consu

postgresql13-llvm jit-13.5-1PGDG.rhel8.x86_64

2021-11-14 Thread Mladen Gogala
ave some rather large databases and CREATE INDEX CONCURRENTLY and REINDEX CONCURRENTLY  fixes in 13.5 are highly desired but not at the cost of the overall application performance. Regards -- Mladen Gogala Database Consultant Tel: (347) 321-1217 https://dbwhisperer.wordpress.com

Re: postgresql13-llvm jit-13.5-1PGDG.rhel8.x86_64

2021-11-15 Thread Mladen Gogala
query that can be well calculated in parallel, then positive effect of JIT is less. Regards Pavel Thanks Pavel, you answered my question. I'll wait with the upgrade. Regards -- Mladen Gogala Database Consultant Tel: (347) 321-1217 https://dbwhisperer.wordpress.com

Unique constraint blues

2022-01-18 Thread Mladen Gogala
rror starting at line : 1 in command - insert into test1 values(1,null) Error report - ORA-1: unique constraint (SCOTT.TEST1_UQ) violated Elapsed: 00:00:00.033 Oracle is rejecting the same row twice, regardless of whether it contains NULL values or not. As in  Postgres, the resulting index can

Re: Never Ending query in PostgreSQL

2022-02-28 Thread Mladen Gogala
action is to completely rewrite the queries, probably using CTE and temporary tables. May the Force be with you. Regards -- Mladen Gogala Database Consultant Tel: (347) 321-1217 https://dbwhisperer.wordpress.com

Re: Never Ending query in PostgreSQL

2022-02-28 Thread Mladen Gogala
#x27;s orbiting at 19 miles a second, so it's reckoned,The sun that is the source of all our power. So, several hours is relative.  Each object has its relative time so it's not possible to conclude whether several hours is a long time or not. -- Mladen Gogala Database Consultant