Re: Build with meson + clang + sanitizer resulted in undefined reference

2024-05-02 Thread Maxim Orlov
you for a reply! Yes, it seems to be that way. Many thanks for the clarification. -- Best regards, Maxim Orlov.

Build with meson + clang + sanitizer resulted in undefined reference

2024-04-25 Thread Maxim Orlov
old trusty 32-bit laptop on Debian. But, there was no time to dig deeper in the problem at the time. And now same for 64-bit Ubuntu. The most common reason for such errors are not passing appropriate sanitizer flags to LDFLAGS, but this is not the case. What could be the reason for this? Am I doin' something wrong? Exact the same sequence, but for GCC, works splendidly. -- Best regards, Maxim Orlov.

Re: POC: make mxidoff 64 bits

2024-04-25 Thread Maxim Orlov
link for that discussion. On the other hand, such a casting is already used throughout the code. So, just for the sake of the consistency, I would like to stay with these casts. On Tue, 23 Apr 2024 at 16:03, wenhui qiu wrote: > Hi Maxim Orlov >Thank you so much for your tireless work on t

POC: make mxidoff 64 bits

2024-04-23 Thread Maxim Orlov
/message-id/flat/CACG%3DezY7msw%2Bjip%3Drtfvnfz051dRqz4s-diuO46v3rAoAE0T0g%40mail.gmail.com [3] https://postgr.es/m/CAJ7c6TPDOYBYrnCAeyndkBktO0WG2xSdYduTF0nxq%2BvfkmTF5Q%40mail.gmail.com -- Best regards, Maxim Orlov. 0001-WIP-mxidoff-to-64bit.patch Description: Binary data

Re: Refactoring of pg_resetwal/t/001_basic.pl

2024-03-22 Thread Maxim Orlov
e reality. -- Best regards, Maxim Orlov. v1-0002-Use-proper-types-in-defines-in-multixact.c.patch Description: Binary data

Re: Bug in nbtree optimization to skip > operator comparisons (or < comparisons in backwards scans)

2024-03-22 Thread Maxim Orlov
I've noticed this patch and had a quick look at it. As far as I understand, this bug does not lead to an incorrect matching, resulting only in degradation in speed. Anyway, consider this patch useful, hope it will be committed soon. -- Best regards, Maxim Orlov.

Refactoring of pg_resetwal/t/001_basic.pl

2024-03-21 Thread Maxim Orlov
or MultiXactId. As always, reviews and opinions are very welcome! -- Best regards, Maxim Orlov. v1-0001-Refactor-pg_resetwal-t-001_basic.pl.patch Description: Binary data

Re: CI speed improvements for FreeBSD

2024-03-12 Thread Maxim Orlov
increase should be significant. -- Best regards, Maxim Orlov.

Re: Add Index-level REINDEX with multiple jobs

2024-03-11 Thread Maxim Orlov
orry for a late reply. Thanks for an explanation. This is sounds reasonable to me. Svetlana had addressed this in the patch v2. -- Best regards, Maxim Orlov.

Re: Extension Enhancement: Buffer Invalidation in pg_buffercache

2024-03-07 Thread Maxim Orlov
ing? -- Best regards, Maxim Orlov. v4-0001-Invalidate-Buffer-By-Bufnum.patch Description: Binary data

Re: POC: GROUP BY optimization

2024-02-21 Thread Maxim Orlov
g_x_y_idx on btg -(6 rows) + -> Seq Scan on btg +(5 rows) ... and so on. So, my proposal is simple. I think we need not just "ANALYZE btg", but "VACUUM ANALYZE btg", to get rid of zeroed pages in this particular case. PFA corresponding patch. -- Best regards,

Re: Next step towards 64bit XIDs: Switch to FullTransactionId for PGPROC->xid and XLogRecord->xl_xid

2023-12-31 Thread Maxim Orlov
nd the egg" situation. It is very hard to split overall 64xid patch into smaller pieces with each part been a meaningful and beneficial for current 32xids Postgres. Anyway, thanks for reply, appreciate it. -- Best regards, Maxim Orlov.

Add Index-level REINDEX with multiple jobs

2023-12-29 Thread Maxim Orlov
://www.postgresql.org/message-id/flat/CAOBaU_YrnH_Jqo46NhaJ7uRBiWWEcS40VNRQxgFbqYo9kApUsg%40mail.gmail.com -- Best regards, Maxim Orlov. v1-0001-Add-Index-level-REINDEX-with-multiple-jobs.patch Description: Binary data

Next step towards 64bit XIDs: Switch to FullTransactionId for PGPROC->xid and XLogRecord->xl_xid

2023-12-29 Thread Maxim Orlov
CnfHOr78AtAZxJZeCvxrts0ygrxYwe=pyyj...@mail.gmail.com [1] https://www.postgresql.org/message-id/flat/CAJ7c6TPDOYBYrnCAeyndkBktO0WG2xSdYduTF0nxq%2BvfkmTF5Q%40mail.gmail.com -- Best regards, Maxim Orlov. v1-0002-Switch-to-FullTransactionId-for-XLogRecord-xl_xid.patch Description: Binary data v1-0001-Swi

Re: How to stop autovacuum silently

2023-11-23 Thread Maxim Orlov
ommit 74cf7d46. > I'm pretty much sure it was, but, unfortunately, there are no way to 100% confirm this. All I know, they're using PG13 now. -- Best regards, Maxim Orlov.

How to stop autovacuum silently

2023-11-22 Thread Maxim Orlov
--+-- bar | 8192 | 16384 | 0 | 8192 | 16384 | | |0 (1 row) ... and so on -- Best regards, Maxim Orlov. 0001-Add-warning-if-datfrozenxid-or-datminmxid-is-not-set.patch Description: Binary data

Re: XID formatting and SLRU refactorings (was: Add 64-bit XIDs into PostgreSQL 15)

2023-11-09 Thread Maxim Orlov
nt) strtol(clde->d_name, NULL, 16); + segno = strtoi64(clde->d_name, NULL, 16); -- Best regards, Maxim Orlov. v61-0003-Make-use-FullTransactionId-in-2PC-filenames.patch Description: Binary data v61-0004-Add-SLRU-tests-for-64-bit-page-case.patch Description: Binary data v61-0002-Us

Re: ALTER COLUMN ... SET EXPRESSION to alter stored generated column's expression

2023-11-09 Thread Maxim Orlov
e? It would be nice to correct this in the next release. -- Best regards, Maxim Orlov.

Re: XID formatting and SLRU refactorings (was: Add 64-bit XIDs into PostgreSQL 15)

2023-11-07 Thread Maxim Orlov
AFICS, the only reason for this behaviour is becouse of transaction wraparound. It may occur while the feature is disabled end it is safe to simply remove all the data from previous period. If we switch to FullTransactionId in commit_ts we can overcome this limitation. But I'm not sure if it w

Re: should frontend tools use syncfs() ?

2023-10-09 Thread Maxim Orlov
lot! https://commitfest.postgresql.org/45/4609/ -- Best regards, Maxim Orlov.

Re: should frontend tools use syncfs() ?

2023-10-06 Thread Maxim Orlov
Back to the patch v11. I don’t understand a bit, what we should do next? Make a separate thread or put this one on commitfest? -- Best regards, Maxim Orlov.

Re: should frontend tools use syncfs() ?

2023-09-21 Thread Maxim Orlov
WAL sync methods instead of defines. -- Best regards, Maxim Orlov. v11-0001-Fix-conflicting-types-for-sync_method.patch Description: Binary data

Re: should frontend tools use syncfs() ?

2023-09-20 Thread Maxim Orlov
yncMethod' (aka 'enum DataDirSyncMethod') extern PGDLLIMPORT int sync_method; ... As a solution, I suggest renaming sync_method in xlog module to wal_sync_method. In fact, appropriate GUC for this variable, called "wal_sync_method" and I see no reason not to use the exact same name f

Re: Add 'worker_type' to pg_stat_subscription

2023-09-13 Thread Maxim Orlov
section there to have an explicit error instead of the compiler warnings if somehow we decide to add another one worker type? So, should we mark this thread as RfC? -- Best regards, Maxim Orlov.

Re: ALTER COLUMN ... SET EXPRESSION to alter stored generated column's expression

2023-09-13 Thread Maxim Orlov
view, consider split these commands. Hope, that helps. Again, I'm +1 for this patch. -- Best regards, Maxim Orlov.

Vectorization of some functions and improving pg_list interface

2023-08-24 Thread Maxim Orlov
thing still waiting to be improved if foreach loop. It is not very handy to have a bunch of similar calls foreach, forboth, forthree and etc. It will be ideal to have single foreach interface, but I don't know how to do it without overall interface of the loop. Any opinions are very welcome! -- Best rega

Re: [PATCH] Add initial xid/mxid/mxoff to initdb

2023-03-21 Thread Maxim Orlov
On Mon, 20 Mar 2023 at 22:31, Gregory Stark (as CFM) wrote: > > So is that other thread tracked in a different commitfest entry and > this one completely redundant? I'll mark it Rejected then? > Yep, it appears so. -- Best regards, Maxim Orlov.

Re: Add SHELL_EXIT_CODE to psql

2023-03-20 Thread Maxim Orlov
I did a look at the patch, and it seems to be in a good condition. It implements declared functionality with no visible defects. As for test, I think it is possible to implement "signals" case in tap tests. But let the actual commiter decide does it worth it or not. -- Best regards, Maxim Orlov.

Re: XID formatting and SLRU refactorings (was: Add 64-bit XIDs into PostgreSQL 15)

2023-03-20 Thread Maxim Orlov
in PGPROC and patch become too big to handle here. So I decided to keep it simple for now and use wrap logic trick and calc FullTransactionId on current epoch, since the span of active xids cannot exceed one epoch at any given time. Patches 1 and 2 are the same as above. -- Best regards, Maxim Orlov

Re: XID formatting and SLRU refactorings (was: Add 64-bit XIDs into PostgreSQL 15)

2023-03-07 Thread Maxim Orlov
MultiXactOffset from 32 to 64 bits, and eliminate pg_multixact/members > wraparound, while keeping multi-xids 32 bits wide. > > Yes, you're totally correct. If it will be committable that way, I'm all for that. -- Best regards, Maxim Orlov.

Re: XID formatting and SLRU refactorings (was: Add 64-bit XIDs into PostgreSQL 15)

2023-03-07 Thread Maxim Orlov
arger segment file names in async.c, to lift the current 8 GB limit on the max number of pending notifications. 3. Extend pg_xact to 64-bits. 4. Extend pg_subtrans to 64-bits. 5. Extend pg_multixact so that pg_multixact/members is addressed by 64-bit offsets. 6. Extend pg_twophase.c, to use FullTransaction

Re: XID formatting and SLRU refactorings (was: Add 64-bit XIDs into PostgreSQL 15)

2023-02-28 Thread Maxim Orlov
000 00C2 Either I do not understand something, or the files from pg_commit_ts directory are not copied. -- Best regards, Maxim Orlov.

Re: Add SHELL_EXIT_CODE to psql

2023-02-22 Thread Maxim Orlov
ot;, exit_code_buf); + SetVariable(pset.vars, "SHELL_ERROR", "true"); After this changes, I think, we make this patch RfC, shall we? -- Best regards, Maxim Orlov.

Re: XID formatting and SLRU refactorings (was: Add 64-bit XIDs into PostgreSQL 15)

2023-02-22 Thread Maxim Orlov
offsets > * pg_multixact/members > * pg_subtrans > * pg_notify > * pg_serial Hi! We do ignore these values, since in order to pg_upgrade the server it must be properly stopped and no transactions can outlast this moment. -- Best regards, Maxim Orlov.

Re: Add SHELL_EXIT_CODE to psql

2023-01-30 Thread Maxim Orlov
Unfortunately, there is a fail in FreeBSD https://cirrus-ci.com/task/6466749487382528 Maybe, this patch is need to be rebased? -- Best regards, Maxim Orlov.

Re: old_snapshot_threshold bottleneck on replica

2023-01-30 Thread Maxim Orlov
is used in conjunction with the threshold_xid. We must use spinlock to sync. b). When the threshold_timestamp is used without conjunction with the threshold_xid. In this case, we use atomic values. -- Best regards, Maxim Orlov.

Re: old_snapshot_threshold bottleneck on replica

2023-01-27 Thread Maxim Orlov
On Wed, 25 Jan 2023 at 16:52, Robert Haas wrote: > On Wed, Jan 25, 2023 at 3:52 AM Maxim Orlov wrote: > > Well, that's something we - and ideally you, as the patch author - > need to analyze and figure out. We can't just take a shot and hope for > the best. > I thank you for

Re: old_snapshot_threshold bottleneck on replica

2023-01-25 Thread Maxim Orlov
able is using conjointly. So, I'm not sure, is it completely safe to remove mutex. Actually, removing mutex and switch to atomics was my first choice. I've run all the tests and no problems were found. But, at that time I choose to be more conservative. Anyway, here is the new variant. -- Best re

old_snapshot_threshold bottleneck on replica

2023-01-23 Thread Maxim Orlov
ld_xid, but is this really a problem? Thoughts? -- Best regards, Maxim Orlov. 0001-PGPRO-7624-use-atomic-old_snapshot_threshold.patch Description: Binary data

Re: Add SHELL_EXIT_CODE to psql

2023-01-20 Thread Maxim Orlov
On Fri, 13 Jan 2023 at 07:50, Corey Huinker wrote: > > I named it wait_result_to_exit_code(), but I welcome suggestions of a > better name. > Thanks! But CF bot still not happy. I think, we should address issues from here https://cirrus-ci.com/task/5391002618298368 -- Best re

Re: Add SHELL_EXIT_CODE to psql

2023-01-12 Thread Maxim Orlov
[23:19:52.197] meson-generated_.._psqlscanslash.c.obj : error LNK2019: unresolved external symbol WSTOPSIG referenced in function evaluate_backtick [23:19:52.197] src\bin\psql\psql.exe : fatal error LNK1120: 2 unresolved externals I belive, we need proper includes. -- Best regards, Maxim Orlov.

Re: Add SHELL_EXIT_CODE to psql

2023-01-10 Thread Maxim Orlov
didn't make myself clear. Your solution is perfectly adapted to our needs. But all Windows since 2000 already have an environment variable OS=Windows_NT. So, if env OS is defined and equal Windows_NT, this had to be Windows. May we use it in our case? I don't insist, just asking. -- Best regards, Maxim Orlov.

Re: Add SHELL_EXIT_CODE to psql

2023-01-09 Thread Maxim Orlov
S"? I do not know much about Windows, but I think this is kind of standard environment variable there. -- Best regards, Maxim Orlov.

Re: XID formatting and SLRU refactorings (was: Add 64-bit XIDs into PostgreSQL 15)

2023-01-09 Thread Maxim Orlov
Hi! Here is a new patch set. I've added comments and make use GetClogDirName call in copy_subdir_files. -- Best regards, Maxim Orlov. v52-0003-Make-pg_upgrade-from-32-bit-to-64-bit-SLRU.patch Description: Binary data v52-0002-Use-64-bit-pages-representation-in-SLRU-callers.patch Description

Re: XID formatting and SLRU refactorings (was: Add 64-bit XIDs into PostgreSQL 15)

2023-01-09 Thread Maxim Orlov
On Fri, 6 Jan 2023 at 09:51, Japin Li wrote: > > For v51-0003. We can use GetClogDirName instead of GET_MAJOR_VERSION in > copy_subdir_files(). > Of course! Tanks! I'll address this in the next iteration, v52. -- Best regards, Maxim Orlov.

Re: XID formatting and SLRU refactorings (was: Add 64-bit XIDs into PostgreSQL 15)

2023-01-09 Thread Maxim Orlov
of an amount of SLRU pages per segment. And as for other SLRUs, they cannot survive pg_upgrade mostly by the fact, that cluster must be stopped upon upgrade. Thus, no conversion needed. -- Best regards, Maxim Orlov.

Re: add \dpS to psql

2022-12-28 Thread Maxim Orlov
egards, Maxim Orlov.

Re: Add SHELL_EXIT_CODE to psql

2022-12-28 Thread Maxim Orlov
exit_code=WEXITSTATUS(exit_code); + else if(WIFSIGNALED(exit_code)) + exit_code=WTERMSIG(exit_code); + else if(WIFSTOPPED(exit_code)) + exit_code=WSTOPSIG(exit_code); -- Best regards, Maxim Orlov.

Re: Add 64-bit XIDs into PostgreSQL 15

2022-12-28 Thread Maxim Orlov
/www.postgresql.org/message-id/CACG%3Dezav34TL%2BfGXD5vJ48%3DQbQBL9BiwkOTWduu9yRqie-h%2BDg%40mail.gmail.com -- Best regards, Maxim Orlov.

False positive warning in verify_heapam.c with GCC 03

2022-12-27 Thread Maxim Orlov
inserter aborted, don't check */ So, I think this warning is false positive. On the other hand, we could simply init status variable in get_xid_status and make this code more errors/warnings safe. Thoughts? -- Best regards, Maxim Orlov. 0002-Init-status-var-in-get_xid_status.patch Description: Bi

Re: XID formatting and SLRU refactorings (was: Add 64-bit XIDs into PostgreSQL 15)

2022-12-19 Thread Maxim Orlov
jgkmjgkcm2-vQq3_TzcoMKmVimvQLx9oJLbye0Q%40mail.gmail.com#03a4ab82569bb7b112db4a2f352d96b9 -- Best regards, Maxim Orlov. v51-0003-Make-pg_upgrade-from-32-bit-to-64-bit-SLRU.patch Description: Binary data v51-0001-Use-internal-64-bit-numbering-of-SLRU-pages.patch Description: Binary data v51-0002-Use-64

Re: Add 64-bit XIDs into PostgreSQL 15

2022-12-09 Thread Maxim Orlov
s case. As far as I can see, there is overall consensus to commit SLRU related changes first. -- Best regards, Maxim Orlov.

Re: Add 64-bit XIDs into PostgreSQL 15

2022-12-09 Thread Maxim Orlov
gt; Supabase. > +1 Totally support the idea. Let's focus on committing SLRU changes. -- Best regards, Maxim Orlov.

Re: [BUG] FailedAssertion in SnapBuildPurgeOlderTxn

2022-11-25 Thread Maxim Orlov
oks > > good to me. I am planning to push (v11-v15) the attached tomorrow > > unless there are more comments. > > > > Pushed. > A big thanks to you! Could you also, close the commitfest entry https://commitfest.postgresql.org/41/4024/, please? -- Best regards, Maxim Orlov.

Re: [BUG] FailedAssertion in SnapBuildPurgeOlderTxn

2022-11-24 Thread Maxim Orlov
ks! I've created a commitfest entry for this patch, see https://commitfest.postgresql.org/41/4024/ Hope, it will be committed soon. -- Best regards, Maxim Orlov.

Re: [BUG] FailedAssertion in SnapBuildPurgeOlderTxn

2022-11-22 Thread Maxim Orlov
o decide what to do, should we? -- Best regards, Maxim Orlov.

Re: [PATCH] Add initial xid/mxid/mxoff to initdb

2022-11-22 Thread Maxim Orlov
Hi! CF bot says patch does not apply. Rebased. Your reviews are very much welcome! -- Best regards, Maxim Orlov. v2-0001-Add-initdb-option-to-initialize-cluster-with-non-.patch Description: Binary data

Re: [BUG] FailedAssertion in SnapBuildPurgeOlderTxn

2022-11-22 Thread Maxim Orlov
> > Thank you for the report and initial analysis. I have added Sawada-San > to know his views as he was the primary author of this work. > > -- > With Regards, > Amit Kapila. > OK, thanks a lot. I hope, we'll fix this soon. -- Best regards, Maxim Orlov.

Re: [BUG] Logical replication failure "ERROR: could not map filenode "base/13237/442428" to relation OID" with catalog modifying txns

2022-11-21 Thread Maxim Orlov
ialRunningXacts array, allocaled in builder->context. Do we really need it to be allocated that way? [0] https://www.postgresql.org/message-id/CACG%3DezZoz_KG%2BRyh9MrU_g5e0HiVoHocEvqFF%3DNRrhrwKmEQJQ%40mail.gmail.com -- Best regards, Maxim Orlov.

[BUG] FailedAssertion in SnapBuildPurgeOlderTxn

2022-11-21 Thread Maxim Orlov
xnf0vv3ey9bjgrrrfn2yy...@mail.gmail.com -- Best regards, Maxim Orlov. From d09a031f1f807cdfe1e02000b2bf4fd3eaaedd8f Mon Sep 17 00:00:00 2001 From: Maxim Orlov Date: Mon, 21 Nov 2022 14:50:02 +0300 Subject: [PATCH] catalog_change_snapshot-fail --- contrib/test_decoding/Makefile |

Re: [PoC] configurable out of disk space elog level

2022-11-18 Thread Maxim Orlov
t can't see much real benefit in putting this logic inside the > database. > OK, I got it. Thanks for your thoughts! -- Best regards, Maxim Orlov.

Re: [PoC] configurable out of disk space elog level

2022-11-17 Thread Maxim Orlov
get_tablespace_elevel: + /* +* Use GUC level only in normal mode. +*/ + if (!IsNormalProcessingMode()) + return ERROR; Anyway, I appreciate the opinion, thank you! -- Best regards, Maxim Orlov.

Re: Add LSN along with offset to error messages reported for WAL file read/write/validate header failures

2022-11-16 Thread Maxim Orlov
On Tue, 15 Nov 2022 at 13:02, Bharath Rupireddy < bharath.rupireddyforpostg...@gmail.com> wrote: > On Fri, Nov 11, 2022 at 5:52 PM Maxim Orlov wrote: > > > But, in my view, some improvements may be proposed. We should be more, > let's say, cautious (or a

[PoC] configurable out of disk space elog level

2022-11-16 Thread Maxim Orlov
ould appreciate it if you give your opinions on a subject. -- Best regards, Maxim Orlov. [0] https://www.postgresql.org/message-id/flat/CAD21AoCmT3cFQUN4aVvzy5chw7DuzXrJCbrjTU05B%2BSs%3DGn1LA%40mail.gmail.com v1-0001-Add-out-of-disk-space-elog-level.patch Description: Binary data

Re: Add LSN along with offset to error messages reported for WAL file read/write/validate header failures

2022-11-11 Thread Maxim Orlov
. -- Best regards, Maxim Orlov.

Re: Add palloc_aligned() to allow arbitrary power of 2 memory alignment

2022-11-03 Thread Maxim Orlov
ooks good to me. Let's add tests for these functions, should we? If you think this is an overkill, feel free to trim tests for your taste. -- Best regards, Maxim Orlov. v1-0002-Add-tests-for-palloc_aligned.patch Description: Binary data v1-0001-palloc_aligned.patch Description: Binary data

Re: Turn TransactionIdRetreat/Advance into inline functions

2022-10-10 Thread Maxim Orlov
ange the semantics of these calls to xid = TransactionIdAdvance(xid) ? -- Best regards, Maxim Orlov.

Turn TransactionIdRetreat/Advance into inline functions

2022-10-10 Thread Maxim Orlov
, they should be addressed separately: the comment says that "this is a macro for speed". Any thoughts? [0]: https://www.postgresql.org/message-id/flat/5b558da8-99fb-0a99-83dd-f72f05388517%40enterprisedb.com -- Best regards, Maxim Orlov. v1-0001-Convert-macros-to-static-inline

Re: XID formatting and SLRU refactorings (was: Add 64-bit XIDs into PostgreSQL 15)

2022-10-07 Thread Maxim Orlov
> > This is the wrong thread / CF entry. Please see > Yep, my fault. Sorry about that. -- Best regards, Maxim Orlov.

Re: making relfilenodes 56 bits

2022-09-29 Thread Maxim Orlov
Again, I'm not in this thread and if that is completely ok, I'm sorry about the noise. -- Best regards, Maxim Orlov.

Re: [PATCH] Improve amcheck to also check UNIQUE constraint in btree index.

2022-09-28 Thread Maxim Orlov
Hi! I think, this patch was marked as "Waiting on Author", probably, by mistake. Since recent changes were done without any significant code changes and CF bot how happy again. I'm going to move it to RfC, could I? If not, please tell why. -- Best regards, Maxim Orlov.

Re: [PATCH] Improve amcheck to also check UNIQUE constraint in btree index.

2022-09-27 Thread Maxim Orlov
installed and t/004_verify_nbtree_unique.pl to the tests. > > Greetings, > > Andres Freund > Thanks! Fixed. -- Best regards, Maxim Orlov. v17-0001-Add-option-for-amcheck-and-pg_amcheck-to-check-u.patch Description: Binary data

Re: Add 64-bit XIDs into PostgreSQL 15

2022-09-16 Thread Maxim Orlov
I have to say, to my embarrassment, after sending the previous email, I've notice minor imperfections in a patch set caused by the last rebase. These imperfections led to cf bot fail. I'll address this issue in the next iteration in order not to generate excessive flow. -- Best regards, Maxim

Re: [EXTERNAL] Re: Support load balancing in libpq

2022-09-14 Thread Maxim Orlov
e a way to test the patch? Good idea too. I think, we should add tap test here. -- Best regards, Maxim Orlov.

Re: remove reset_shared()

2022-07-15 Thread Maxim Orlov
Hi! In general I'm for this patch. Some time ago I was working on a patch related to shared memory and noticed no reason to have reset_shared() function. -- Best regards, Maxim Orlov.

Re: Fix unnecessary includes and comments in 019_replslot_limit.pl, 007_wal.pl and 004_timeline_switch.pl

2022-07-06 Thread Maxim Orlov
> > I'm sorry for some nitpicking about changes in the comments: > - The number of WAL segments advanced hasn't changed from 5 to 1, it just > advances as 1+4 as previously. So the original comment is right. I reverted > this in v2. > Yeah, it looks even better now. -- Best regards, Maxim Orlov.

Re: Fix unnecessary includes and comments in 019_replslot_limit.pl, 007_wal.pl and 004_timeline_switch.pl

2022-07-06 Thread Maxim Orlov
Hi! This is an obvious change, I totally for it. Hope it will be commited soon. -- Best regards, Maxim Orlov.

Re: Custom tuplesorts for extensions

2022-07-06 Thread Maxim Orlov
Hi! Overall patch looks good let's mark it as ready for committer, shall we? -- Best regards, Maxim Orlov.

Re: XID formatting and SLRU refactorings (was: Add 64-bit XIDs into PostgreSQL 15)

2022-05-13 Thread Maxim Orlov
. [1] https://www.postgresql.org/message-id/flat/CACG%3DezZe1NQSCnfHOr78AtAZxJZeCvxrts0ygrxYwe%3DpyyjVWA%40mail.gmail.com -- Best regards, Maxim Orlov.

[PATCH] Add initial xid/mxid/mxoff to initdb

2022-05-05 Thread Maxim Orlov
wraparound. Please share your opinions and reviews are always welcome. [1] https://www.postgresql.org/message-id/flat/CACG%3DezZe1NQSCnfHOr78AtAZxJZeCvxrts0ygrxYwe%3DpyyjVWA%40mail.gmail.com [2] https://postgr.es/m/d045f3c2-6cfb-06d3-5540-e63c320df...@enterprisedb.com -- Best regards, Maxim Orlov

Re: Unit tests for SLRU

2022-04-05 Thread Maxim Orlov
sion authors to make relevant tests. For me, it's enough to make a reasonable test coverage for SLRU without investing too much effort into generalization. -- Best regards, Maxim Orlov.

Re: Is monotonous xid8 is a right way to do?

2022-04-01 Thread Maxim Orlov
or maximum. For example, max may be implemented as max(0, 42, 18446744073709551615) = 42, which is a bit weird. -- Best regards, Maxim Orlov.

Re: Assert in pageinspect with NULL pages

2022-03-28 Thread Maxim Orlov
/CACG%3DezZe1NQSCnfHOr78AtAZxJZeCvxrts0ygrxYwe%3DpyyjVWA%40mail.gmail.com -- Best regards, Maxim Orlov.

Re: Problem with moderation of messages with patched attached.

2022-03-03 Thread Maxim Orlov
www.postgresql.org/message-id/flat/CACG%3DezZe1NQSCnfHOr78AtAZxJZeCvxrts0ygrxYwe%3DpyyjVWA%40mail.gmail.com > > -- > Best regards, > Pavel Borisov > > Postgres Professional: http://postgrespro.com <http://www.postgrespro.com> > Confirm -- Best regards, Maxim Orlov.

Re: [PATCH] Improve amcheck to also check UNIQUE constraint in btree index.

2022-02-21 Thread Maxim Orlov
I've updated the patch due to recent changes by Daniel Gustafsson (549ec201d6132b7). -- Best regards, Maxim Orlov. v10-0001-Add-option-for-amcheck-and-pg_amcheck-to-check-u.patch Description: Binary data

Re: UNIQUE null treatment option

2022-01-25 Thread Maxim Orlov
Since cfbot did failed with error, probably, unrelated to the patch itself (see https://cirrus-ci.com/task/5330150500859904) and repeated check did not start automatically, I reattach patch v3 to restart cfbot on this patch. -- Best regards, Maxim Orlov. v3-0001-Add-UNIQUE-null-treatment

Re: O(n) tasks cause lengthy startups and checkpoints

2022-01-14 Thread Maxim Orlov
have two different code paths switched by GUC? Should we also think about adding WAL preallocation into custodian worker from the patch "Pre-alocationg WAL files" [1] ? [1] https://www.postgresql.org/message-id/flat/20201225200953.jjkrytlrzojbn...@alap3.anarazel.de -- Best regards, Maxim Orlov.

Re: UNIQUE null treatment option

2022-01-13 Thread Maxim Orlov
with the "three way merge" option (-3). Consider rebasing it, please. Then, in my view, it can be "Ready for committer". -- Best regards, Maxim Orlov.

Re: Add 64-bit XIDs into PostgreSQL 15

2022-01-08 Thread Maxim Orlov
; All this mechanism is around heap_insert/heap_update by calling heap_page_prepare_for_xid() and if it fails (due to tuple still visible) error is raised. Also If xid_base shift is not viable, it will try to remove old tuples. -- Best regards, Maxim Orlov.

Re: Add 64-bit XIDs into PostgreSQL 15

2022-01-08 Thread Maxim Orlov
ctionally the same as the PostgresPro > implementation? > Yes, it is. It basically is PostgresPro implementation, not a concept or smth. -- Best regards, Maxim Orlov.

Re: Pre-allocating WAL files

2021-12-30 Thread Maxim Orlov
again before adding > this feature. I did tests myself a couple of months ago and got similar > results. > Really don't know whether is it worth the effort. > > Wish you and all hackers happy New Year! > -- > Best regards, > Pavel Borisov > > Postgres Professional: http://postgrespro.com <http://www.postgrespro.com> > -- --- Best regards, Maxim Orlov.

Re: Pre-allocating WAL files

2021-10-06 Thread Maxim Orlov
erformance improvements to be commited. --- Best regards, Maxim Orlov, Pavel Borisov. The new status of this patch is: Waiting on Author

Re: Parallel scan with SubTransGetTopmostTransaction assert coredump

2021-07-13 Thread Maxim Orlov
On 2021-07-09 20:36, Tomas Vondra wrote: Hi, I took a quick look on this - I'm no expert in the details of snapshots, so take my comments with a grain of salt. AFAICS both Greg Nancarrow and Pavel Borisov are kinda right. I think Greg is right the v3 patch does not seem like the right (or

Re: Parallel scan with SubTransGetTopmostTransaction assert coredump

2021-06-22 Thread Maxim Orlov
The analysis in the beginning of the discussion seems to be right, but the fix v2 looks too invasive for me. Personally, I'd like not to remove snapshot even if transaction is read-only. I propose to consider "xid < TransactionXmin" as a legit case and just promote xid to TransactionXmin.

Re: Parallel scan with SubTransGetTopmostTransaction assert coredump

2021-06-04 Thread Maxim Orlov
Just a note here. After examining the core dump I did notice something. While in XidInMVCCSnapshot call the snapshot->suboverflowed is set true although subxip == NULL and subxcnt == 0. As far as I understand, snapshot->suboverflowed is set true in the GetRunningTransactionData call. And

Re: SSL negotiation error on massive connect/disconnect

2021-04-09 Thread Maxim Orlov
On 2021-03-01 17:22, Maxim Orlov wrote: Hi! I have primary server on port 55942 and two standbys on 55943 and 55944. Then use connection string like "postgresql://127.0.0.1:55942,127.0.0.1:55943,127.0.0.1:55944/postgres" to connect to the servers via psql. Everything works perfectly

Re: Failed assertion on standby while shutdown

2021-04-05 Thread Maxim Orlov
On 2021-04-01 15:02, Fujii Masao wrote: On 2021/03/31 19:51, Maxim Orlov wrote: On 2021-03-30 20:44, Maxim Orlov wrote: The following review has been posted through the commitfest application: make installcheck-world:  tested, passed Implements feature:   tested, passed Spec compliant

Re: Failed assertion on standby while shutdown

2021-03-31 Thread Maxim Orlov
On 2021-03-30 20:44, Maxim Orlov wrote: The following review has been posted through the commitfest application: make installcheck-world: tested, passed Implements feature: tested, passed Spec compliant: not tested Documentation:not tested All the tests passed

Re: Failed assertion on standby while shutdown

2021-03-30 Thread Maxim Orlov
The following review has been posted through the commitfest application: make installcheck-world: tested, passed Implements feature: tested, passed Spec compliant: not tested Documentation:not tested All the tests passed successfully. The new status of this patch is:

Re: Failed assertion on standby while shutdown

2021-03-23 Thread Maxim Orlov
On 2021-03-22 16:40, Fujii Masao wrote: On 2021/03/20 2:25, Maxim Orlov wrote: Hi, haсkers! Recently, I was doing some experiments with primary/standby instances interaction. In certain conditions I’ve got and was able to reproduce crash on failed assertion. The scenario is the following

  1   2   >