Re: ObjectIdGetDatum() missing from SearchSysCache*() callers

2023-07-17 Thread Aleksander Alekseev
Hi, > I have noticed 11 callers of SearchSysCache*() that pass down > an Oid instead of a Datum. Good catch. > I think that we'd better be consistent here, even if there is > no actual bug. > +1 -- Best regards, Aleksander Alekseev

Re: Protect extension' internal tables - how?

2023-07-17 Thread Aleksander Alekseev
mindful that your functions will become a target for privilege escalation, so you should be extra careful with the implementation. [1]: https://www.postgresql.org/docs/current/sql-createfunction.html -- Best regards, Aleksander Alekseev

Re: Getting rid of OverrideSearhPath in namespace.c

2023-07-17 Thread Aleksander Alekseev
] https://commitfest.postgresql.org/44/4447/ -- Best regards, Aleksander Alekseev v2-0002-Rename-OverrideSearchPath-to-SearchPathMatcher.patch Description: Binary data v2-0001-Remove-unused-search_path-override-stack.patch Description: Binary data

Re: ObjectIdGetDatum() missing from SearchSysCache*() callers

2023-07-17 Thread Aleksander Alekseev
of them. PFA the updated patch v2. -- Best regards, Aleksander Alekseev v2-0001-Pass-Datum-to-SearchSysCache-instead-of-Oid.patch Description: Binary data

Re: ObjectIdGetDatum() missing from SearchSysCache*() callers

2023-07-17 Thread Aleksander Alekseev
;t be 100% sure but it looks like that's all of them. PFA the > updated patch v2. Added a CF entry, just in case: https://commitfest.postgresql.org/44/4448/ -- Best regards, Aleksander Alekseev

Re: Looking for context around which event triggers are permitted

2023-07-17 Thread Aleksander Alekseev
n event trigger for REINDEX so far. -- Best regards, Aleksander Alekseev

Re: Looking for context around which event triggers are permitted

2023-07-17 Thread Aleksander Alekseev
necessary. -- Best regards, Aleksander Alekseev

Re: RFC: logical publication via inheritance root?

2023-07-19 Thread Aleksander Alekseev
, etc. I would suggest focusing on delivering this part, assuming there will be no push-back to the refactorings and slight test improvements. If 0002 could be further decomposed into separate iterative improvements this could be helpful. -- Best regards, Aleksander Alekseev

Re: Remove backend warnings from SSL tests

2023-07-19 Thread Aleksander Alekseev
rely since its practical value seems to be debatable. The patch was added to the nearest commitfest [1]. Thoughts? [1]: https://commitfest.postgresql.org/44/4451/ -- Best regards, Aleksander Alekseev

[PATCH] Check more invariants during syscache initialization

2023-07-24 Thread Aleksander Alekseev
Hi, Currently InitCatalogCache() has only one Assert() for cacheinfo[] that checks .reloid. The proposed patch adds sanity checks for the rest of the fields. -- Best regards, Aleksander Alekseev v1-0001-Check-more-invariants-during-syscache-initializat.patch Description: Binary data

Re: POC: Extension for adding distributed tracing - pg_tracing

2023-07-25 Thread Aleksander Alekseev
he community thinks. [1] https://commitfest.postgresql.org/44/4456/ -- Best regards, Aleksander Alekseev

Re: [PATCH] Check more invariants during syscache initialization

2023-07-25 Thread Aleksander Alekseev
oposed new Asserts() make a huge difference. I merely noticed that InitCatalogCache checks only cacheinfo[cacheId].reloid. Checking the rest of the values would be helpful for the developers and will not impact the performance of the release builds. -- Best regards, Aleksander Alekseev

[PATCH] Small refactoring of inval.c and inval.h

2023-07-25 Thread Aleksander Alekseev
s removing the comment instead. InvalidateSystemCachesExtended() is an internal function of inval.c. Make it static. """ -- Best regards, Aleksander Alekseev v1-0001-Refactor-inval.c-and-inval.h.patch Description: Binary data

Re: [PATCH] Small refactoring of inval.c and inval.h

2023-07-25 Thread Aleksander Alekseev
functions" comment, then we're still > inside a section that starts with the "private support functions" > comment, which seems even worse to me than the current situation. Fixed. -- Best regards, Aleksander Alekseev v2-0001-Refactor-inval.c-and-inval.h.patch Description: Binary data

Re: [PATCH] Check more invariants during syscache initialization

2023-07-26 Thread Aleksander Alekseev
t. That's correct. > Still it's hard to miss at compile time. I think that I would remove > this one. Fair enough. Here is the updated patch. -- Best regards, Aleksander Alekseev v2-0001-Check-more-invariants-during-syscache-initializat.patch Description: Binary data

Re: Remove unused fields in ReorderBufferTupleBuf

2023-07-26 Thread Aleksander Alekseev
t;alloc_tuple_size = alloc_len; | ^~ [829/1882] Compiling C object contrib/xml2/pgxml.so.p/xpath.c.o ``` On top of that IMO it doesn't make much sense to keep a one-field wrapper structure. Perhaps we should get rid of it entirely and just use HeapTupleData instead. Thoughts? -- Best regards, Aleksander Alekseev

Re: Remove unused fields in ReorderBufferTupleBuf

2023-07-26 Thread Aleksander Alekseev
ything in this respect in v2. Feedback from the community would be much appreciated. [1]: https://commitfest.postgresql.org/44/4461/ -- Best regards, Aleksander Alekseev v2-0001-Remove-unused-fields-in-ReorderBufferTupleBuf.patch Description: Binary data

Re: Remove unused fields in ReorderBufferTupleBuf

2023-07-26 Thread Aleksander Alekseev
o I abandoned that idea for now. > Alternatively we could convert ReorderBufferTupleBufData macro to an > inlined function. At least it will add some type safety. Here is v3 that implements it too as a separate patch. Apologies for the noise. -- Best regards, Aleksander Alekseev v3-0001-Remo

Re: [PATCH] Check more invariants during syscache initialization

2023-07-26 Thread Aleksander Alekseev
p/pg_backup_tar.c: if (oid != 0) > .//src/bin/pg_dump/pg_backup_custom.c: while (oid != 0) > .//src/bin/pg_dump/pg_backup_custom.c: while (oid != 0) > ``` > That is another story…I would like provide a patch if it worths. Good catch. Please do so. -- Best regards, Aleksander Alekseev

Re: POC: Extension for adding distributed tracing - pg_tracing

2023-07-26 Thread Aleksander Alekseev
library and +1 to the properly licensed C implementation without 3rd party dependencies from me. Especially considering the fact that the implementation seems to be rather simple. -- Best regards, Aleksander Alekseev

Re: [PATCH] Check more invariants during syscache initialization

2023-07-26 Thread Aleksander Alekseev
ther files since Zhang wants to propose the corresponding patch. -- Best regards, Aleksander Alekseev v3-0001-Check-more-invariants-during-syscache-initializat.patch Description: Binary data

Re: POC: Extension for adding distributed tracing - pg_tracing

2023-07-27 Thread Aleksander Alekseev
Agree, something goes wrong when using Autotools (but not Meson) on both Linux and MacOS. I didn't investigate the issue though. -- Best regards, Aleksander Alekseev v2-0001-TODO-FIXME-write-a-proper-commit-message-this-is-.patch Description: Binary data

Re: Incorrect handling of OOM in WAL replay leading to data loss

2023-08-01 Thread Aleksander Alekseev
y should be reserved for the WAL replay and perhaps other needs. In the recent case the system should account for the overcommitment of the OS - cases when a successful malloc() doesn't necessarily allocate the required amount of *physical* memory, as it's done on Linux. -- Best regards, Aleksander Alekseev

Re: Make error messages about WAL segment size more consistent

2023-08-22 Thread Aleksander Alekseev
a GUC check hook to do the verification > instead of coding it in bootstrap.c. This might be overkill, but that > way the check is in the right place and it becomes more self-documenting. I reviewed the code and tested it on Linux and MacOS with Autotools and Meson. The patch LGTM. -- Best regards, Aleksander Alekseev

Re: [PATCH v1] PQputCopyEnd never returns 0, fix the inaccurate comment

2023-08-28 Thread Aleksander Alekseev
o one asked to do and no one cares about. Perhaps this function should be refactored too for consistency. Thoughts? -- Best regards, Aleksander Alekseev

Re: Wrong usage of pqMsg_Close message code?

2023-08-28 Thread Aleksander Alekseev
pq_putmessage(PqMsg_Close, completionTag, len + 1); case DestNone: case DestDebug ``` It should have been PqMsg_CommandComplete. [1]: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=f4b54e1ed98 -- Best regards, Aleksander Alekseev

Re: Wrong usage of pqMsg_Close message code?

2023-08-28 Thread Aleksander Alekseev
Hi, > here is a patch - all tests passed LGTM and added to the nearest CF just in case [1]. [1]: https://commitfest.postgresql.org/44/4523/ -- Best regards, Aleksander Alekseev

Re: Commitfest manager for September

2023-08-28 Thread Aleksander Alekseev
Hi Peter, > I would like to be the commitfest manager for CF 2023-09. Many thanks for volunteering! If at some point you will require a bit of help please let me know. -- Best regards, Aleksander Alekseev

[PATCH] Replace magic constant 3 with NUM_MERGE_MATCH_KINDS

2024-04-16 Thread Aleksander Alekseev
Oversight of 0294df2f1f84 [1]. [1]: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=0294df2f1f84 -- Best regards, Aleksander Alekseev v1-0001-Replace-constant-3-with-NUM_MERGE_MATCH_KINDS.patch Description: Binary data

Re: [PATCH] Replace magic constant 3 with NUM_MERGE_MATCH_KINDS

2024-04-18 Thread Aleksander Alekseev
Hi, > I guess the argument against inserting an enum element at the end is > that a switch statement on the enum value might generate a compiler > warning if it didn't have a default clause. Fair point. PFA the alternative version of the patch. -- Best regards, Aleksander Alek

Re: Trigger violates foreign key constraint

2024-04-18 Thread Aleksander Alekseev
gt; people than use foreign keys. So I suggest something like the > attached. I don't mind changing the chapter, but I prefer the wording chosen in v3. The explanation in v4 is somewhat hard to follow IMO. -- Best regards, Aleksander Alekseev

Re: Trigger violates foreign key constraint

2024-04-19 Thread Aleksander Alekseev
integrity. It is the trigger programmer's > responsibility to avoid that. That's perfect! -- Best regards, Aleksander Alekseev

Re: [PATCH] Replace magic constant 3 with NUM_MERGE_MATCH_KINDS

2024-04-19 Thread Aleksander Alekseev
Hi, > > Fair point. PFA the alternative version of the patch. > > > > Thanks. Committed. Thanks. I see a few pieces of code that use special FOO_NUMBER enum values instead of a macro. Should we refactor these pieces accordingly? PFA another patch. -- Best regards, Aleksander

Re: Okay to remove mention of mystery @ and ~ operators?

2024-04-19 Thread Aleksander Alekseev
bit to > just fix this). Indeed, there is no @(box,box) or ~(box,box) in the \dAo output. These operators were removed by 2f70fdb0644c back in 2020. I will submit a patch for the documentation shortly. Thanks for reporting. -- Best regards, Aleksander Alekseev

Re: Okay to remove mention of mystery @ and ~ operators?

2024-04-19 Thread Aleksander Alekseev
out that > > before I try to submit a patch (also very happy for someone with a > > committer bit to just fix this). > > Indeed, there is no @(box,box) or ~(box,box) in the \dAo output. These > operators were removed by 2f70fdb0644c back in 2020. > > I will submit a patch for the documentation shortly. Thanks for reporting. Here is the patch. -- Best regards, Aleksander Alekseev v1-0001-Remove-mention-of-and-operators.patch Description: Binary data

Re: New committers: Melanie Plageman, Richard Guo

2024-04-26 Thread Aleksander Alekseev
ss and few reverts! Completely deserved. Congrats! -- Best regards, Aleksander Alekseev

Re: First draft of PG 17 release notes

2024-05-09 Thread Aleksander Alekseev
integers rather than by 32-bit ones" where the authors are: Maxim Orlov, Aleksander Alekseev, Alexander Korotkov, Teodor Sigaev, Nikita Glukhov, Pavel Borisov, Yura Sokolov. -- Best regards, Aleksander Alekseev

Re: [PATCH] Fix bug when calling strncmp in check_authmethod_valid

2024-05-13 Thread Aleksander Alekseev
ense, it can be resurrected (probably with a better > implementation). > > Any objections to fixing this in 17 by removing it? (cc:ing Michael from the > RMT) +1 Something that is not documented or used by anyone (apparently) and is broken should just be removed. -- Best regards, Aleksander Alekseev

Re: [PATCH] Replace magic constant 3 with NUM_MERGE_MATCH_KINDS

2024-05-13 Thread Aleksander Alekseev
ast enum items. Thanks, fixed. -- Best regards, Aleksander Alekseev v2-0001-Use-macro-to-define-the-number-of-enum-values.patch Description: Binary data

Re: Postgres and --config-file option

2024-05-14 Thread Aleksander Alekseev
ting the long options with hyphens should generally be > preferred in documentation. Thanks for all your great input. Here is the updated patch. -- Best regards, Aleksander Alekseev From 1d55400adba93381d8a08249c95e4e16fb9a5945 Mon Sep 17 00:00:00 2001 From: "David G. Johnston"

Re: Postgres and --config-file option

2024-05-14 Thread Aleksander Alekseev
Hi, > Thanks for all your great input. Here is the updated patch. Here is the patch v4 with fixed typo ("geoq"). Per off-list feedback from Alvaro - thanks! -- Best regards, Aleksander Alekseev v4-0001-Clarify-error-message-about-specifying-config-fil.patch Description: Binary data

Re: Postgres and --config-file option

2024-05-16 Thread Aleksander Alekseev
q.sgml and config.sgml bits > which are improvements of their own. Thanks, Michael. I propose my original v1 patch for correcting the --help output of 'postgres' too. I agree with the above comments that corresponding changes in v4 became somewhat unwieldy. -- Best regards, Ale

Re: Pre-Commitfest Party on StHighload conf

2024-05-16 Thread Aleksander Alekseev
of the June - feel free to register anyway. > If you do not have a ticket to StHighload - we have some speaker entrance > tickets. > At the moment we have 4 potential patch authors ready to present. > > Please contact me with any questions regarding the event. Thanks! Great initiative, thanks! -- Best regards, Aleksander Alekseev

Re: Postgres and --config-file option

2024-05-20 Thread Aleksander Alekseev
> I agree that it's not necessary or particularly useful for this hint > to be exhaustive. I could get behind your suggestion of > s/You must specify/Specify/, but I also think it's fine to do nothing. Fair enough, let's leave the help message as is then. I closed the corresponding CF entry. -- Best regards, Aleksander Alekseev

Re: Reading timestamp values from Datums gives garbage values

2024-05-21 Thread Aleksander Alekseev
. See also commit 260a1f18 [1] and PostgreSQL documentation [2]. [1]: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=260a1f18 [2]: https://www.postgresql.org/docs/16/xfunc-c.html -- Best regards, Aleksander Alekseev

Re: meson "experimental"?

2024-05-30 Thread Aleksander Alekseev
gresql.org/docs/devel/install-meson.html [2]: https://www.postgresql.org/docs/devel/installation-platform-notes.html -- Best regards, Aleksander Alekseev

Re: meson "experimental"?

2024-05-30 Thread Aleksander Alekseev
he buildfarm we seem to use Ninja >= 1.11.1. However since Meson can use both Ninja and VS as a backend I'm not certain which section would be most appropriate for naming the minimal required version of Ninja. -- Best regards, Aleksander Alekseev v1-0001-Meson-is-not-experimental-on-Windows.patch Description: Binary data v1-0002-Rename-section-17.7.5-to-Visual-Studio.patch Description: Binary data

Re: Implementing CustomScan over an index

2024-05-30 Thread Aleksander Alekseev
inimal example on GitHub and asking here. By a quick look I couldn't find an example of implementing a CustomScan in ./contrib/ or ./src/test/. If you can think of a usage example of CustomScans, consider contributing a test case. [1]: https://www.postgresql.org/docs/current/custom-scan.html [2]: https://github.com/timescale/timescaledb/ -- Best regards, Aleksander Alekseev

Re: meson "experimental"?

2024-05-31 Thread Aleksander Alekseev
mention of --backend option from [1] until it will, in order to avoid any confusion. [1]: https://www.postgresql.org/docs/devel/install-meson.html -- Best regards, Aleksander Alekseev

Re: meson "experimental"?

2024-06-03 Thread Aleksander Alekseev
#x27;t give any value that would make it worth maintaining. -- Best regards, Aleksander Alekseev

Proposal: CREATE/ALTER DOMAIN ... STORAGE/COMPRESSION = ...

2022-08-17 Thread Aleksander Alekseev
most people are going to use, but it shouldn't be difficult to implement and/or maintain either. Thoughts? -- Best regards, Aleksander Alekseev

[PATCH] Clarify the comments about varlena header encoding

2022-08-17 Thread Aleksander Alekseev
;" I did my best to get rid of any ambiguity. The patch is attached. [1]: https://www.postgresql.org/docs/current/storage-toast.html -- Best regards, Aleksander Alekseev v1-0001-Clarify-the-comments-about-varlena-header-encodin.patch Description: Binary data

[PATCH] ALTER TABLE ... SET STORAGE default

2022-08-22 Thread Aleksander Alekseev
sed patch fixes this. -- Best regards, Aleksander Alekseev v1-0001-ALTER-TABLE-.-SET-STORAGE-default.patch Description: Binary data

[PATCH] Tab completion for SET COMPRESSION

2022-08-22 Thread Aleksander Alekseev
Hi hackers, The proposed patch adds the missing tab completion for 'ALTER TABLE ... SET COMPRESSION ...' syntax. -- Best regards, Aleksander Alekseev v1-0001-Tab-completion-for-SET-COMPRESSION.patch Description: Binary data

Re: [PATCH] ALTER TABLE ... SET STORAGE default

2022-08-22 Thread Aleksander Alekseev
that a sub-optimal but consistent syntax that does the job is better than inconsistent syntax and figuring out the default storage strategy manually. But let's see what is others people opinion. -- Best regards, Aleksander Alekseev

Re: Pluggable toaster

2022-08-23 Thread Aleksander Alekseev
` branch for the September CF? -- Best regards, Aleksander Alekseev

Re: Removing dead code in pgcrypto

2022-08-30 Thread Aleksander Alekseev
Hi Daniel, > it seems we can consider retiring them in v16. Looks good to me. A link to the discussion was added to the patch. -- Best regards, Aleksander Alekseev v2-0001-pgcrypto-Remove-unused-mbuf-code.patch Description: Binary data

Re: Removing dead code in pgcrypto

2022-08-30 Thread Aleksander Alekseev
the CF application in order to play it safe. Let's see what cfbot will tell us. -- Best regards, Aleksander Alekseev

Re: Removing dead code in pgcrypto

2022-08-30 Thread Aleksander Alekseev
Hi again, > I'm pretty sure this change is fine too, but I added the patch to the > CF application in order to play it safe. Let's see what cfbot will > tell us. I see a little race condition happen :) Sorry for this. -- Best regards, Aleksander Alekseev

Re: Convert *GetDatum() and DatumGet*() macros to inline functions

2022-08-30 Thread Aleksander Alekseev
ink this should be backported? -- Best regards, Aleksander Alekseev v2-0001-Fix-incorrect-uses-of-Datum-conversion-macros.patch Description: Binary data v2-0002-Convert-GetDatum-and-DatumGet-macros-to-inline-fu.patch Description: Binary data

Re: Convert *GetDatum() and DatumGet*() macros to inline functions

2022-08-30 Thread Aleksander Alekseev
ime I encounter the question of ABI compatibility in the context of Postgres, so I would appreciate it if you could elaborate a bit. -- Best regards, Aleksander Alekseev

Re: Convert *GetDatum() and DatumGet*() macros to inline functions

2022-08-30 Thread Aleksander Alekseev
hash_ctx *) PointerGetDatum(foundres); +(pg_cryptohash_ctx *) DatumGetPointer(foundres); ``` This being said, personally I don't have a strong opinion here. After all, the code works and passes the tests. Maybe I'm just being a perfectionist here. -- Best regards, Aleksander Alekseev

Re: Convert *GetDatum() and DatumGet*() macros to inline functions

2022-08-30 Thread Aleksander Alekseev
Hi hackers, > Cfbot is making its mind at the moment of writing. Here is v3 with silenced compiler warnings. -- Best regards, Aleksander Alekseev v3-0002-Convert-GetDatum-and-DatumGet-macros-to-inline-fu.patch Description: Binary data v3-0001-Fix-incorrect-uses-of-Datum-convers

Re: Convert *GetDatum() and DatumGet*() macros to inline functions

2022-08-30 Thread Aleksander Alekseev
Hi hackers, > Here is v3 with silenced compiler warnings. Some more warnings were reported by cfbot, so here is v4. Apologies for the noise. -- Best regards, Aleksander Alekseev v4-0001-Fix-incorrect-uses-of-Datum-conversion-macros.patch Description: Binary data v4-0002-Convert-GetDa

Re: [PATCH] Compression dictionaries for JSONB

2022-09-02 Thread Aleksander Alekseev
l join this effort as a co-author in order to implement the suggested improvements (and perhaps some improvements that were not suggested yet). Meanwhile I'm going to keep the current version of the patch up to date with the `master` branch. -- Best regards, Aleksander Alekseev v7-0001-Compression-dictionaries-for-JSONB.patch Description: Binary data

Re: Convert *GetDatum() and DatumGet*() macros to inline functions

2022-09-05 Thread Aleksander Alekseev
ports a bottleneck for this particular reason. We can optimize the code when and if this will happen. -- Best regards, Aleksander Alekseev

Re: [PATCH] Tab completion for SET COMPRESSION

2022-09-06 Thread Aleksander Alekseev
tch is attached. -- Best regards, Aleksander Alekseev v1-0001-Add-psql-tab-compression-for-OF-NOT-OF-with-ALTER.patch Description: Binary data

Re: [PATCH] Clarify the comments about varlena header encoding

2022-09-06 Thread Aleksander Alekseev
ence between the header and the type tag here will create even more confusion. > And I don't think the new comments referring to "third case", "first > two cases", etc make it easier to follow. Maybe you are right. I'm open to suggestions. -- Best regards, Aleksander Alekseev

Re: [PATCH] Tab completion for SET COMPRESSION

2022-09-06 Thread Aleksander Alekseev
Hi Shinya, > A minor modification has been made so that the composite type is also > completed after "ALTER TABLE OF". LGTM. Here is v3 created with `git format-path`. Unlike v2 it also includes the commit message. -- Best regards, Aleksander Alekseev v3-0001-Add-psql-tab-co

Re: HOT chain validation in verify_heapam()

2022-09-06 Thread Aleksander Alekseev
e || false) gives us false. An error is reported, although actually the condition should have been true. -- Best regards, Aleksander Alekseev

Re: HOT chain validation in verify_heapam()

2022-09-06 Thread Aleksander Alekseev
te the tests locally. Personally I'm using a little script for this [2]. [1]: http://cfbot.cputube.org/ [2]: https://github.com/afiskon/pgscripts/blob/master/full-build.sh -- Best regards, Aleksander Alekseev

Re: HOT chain validation in verify_heapam()

2022-09-06 Thread Aleksander Alekseev
lso I suggest checking TransactionIdEquals() first though since it's cheaper. -- Best regards, Aleksander Alekseev

Re: Convert *GetDatum() and DatumGet*() macros to inline functions

2022-09-08 Thread Aleksander Alekseev
me as such a big deal. At > least until somebody reports a bottleneck for this particular reason. > We can optimize the code when and if this will happen. Since the first patch was applied, cfbot now complains that it can't apply the patchset. Here is the rebased version. -- Best regards,

Add a missing comment for PGPROC.pgprocno

2022-09-08 Thread Aleksander Alekseev
ally the sorting is done by pgprocno. Took me some time to figure this out. Here is the patch that fixes this. Hopefully this will save some time for the newcomers. -- Best regards, Aleksander Alekseev v1-0001-Add-a-missing-comment-for-PGPROC.pgprocno.patch Description: Binary data

Re: Summary function for pg_buffercache

2022-09-09 Thread Aleksander Alekseev
ndefined behaviour. I suggest we focus on saving the memory first and then think about the performance, if necessary. -- Best regards, Aleksander Alekseev v3-0001-Added-pg_buffercache_summary-function.patch Description: Binary data

Re: Summary function for pg_buffercache

2022-09-09 Thread Aleksander Alekseev
re is the corrected patch. -- Best regards, Aleksander Alekseev v4-0001-Added-pg_buffercache_summary-function.patch Description: Binary data

Re: Summary function for pg_buffercache

2022-09-10 Thread Aleksander Alekseev
ng should be buffers_used and buffers_unused. [1]: https://www.postgresql.org/docs/current/monitoring-stats.html -- Best regards, Aleksander Alekseev

Re: [PATCH] Clarify the comments about varlena header encoding

2022-09-11 Thread Aleksander Alekseev
ke sure the reader will not misread this as a hex values * The clarification about the type tag was added * The references to "first case", "second case", etc were removed Hopefully it's better now. -- Best regards, Aleksander Alekseev v2-0001-Clarify-the-comments-about-varlena-header-encodin.patch Description: Binary data

Counterintuitive behavior when toast_tuple_target < TOAST_TUPLE_THRESHOLD

2022-09-14 Thread Aleksander Alekseev
ttps://t.me/pg_sql/62265 [2]: https://www.postgresql.org/docs/current/storage-toast.html -- Best regards, Aleksander Alekseev

Re: Counterintuitive behavior when toast_tuple_target < TOAST_TUPLE_THRESHOLD

2022-09-14 Thread Aleksander Alekseev
Hi hackers, > 1. Forbid setting toast_tuple_target < TOAST_TUPLE_THRESHOLD Reading my own email I realized that this of course was stupid. For sure this is not an option. It's getting late in my timezone, sorry :) -- Best regards, Aleksander Alekseev

Re: Counterintuitive behavior when toast_tuple_target < TOAST_TUPLE_THRESHOLD

2022-09-15 Thread Aleksander Alekseev
he problem when we change it and there is no TOAST table yet. I wonder though if we really need two entities - a "threshold" and a "target". It seems to me that it should actually be one value, no? -- Best regards, Aleksander Alekseev

Re: Avoid use deprecated Windows Memory API

2022-09-15 Thread Aleksander Alekseev
2/api/securitybaseapi/nf-securitybaseapi-gettokeninformation -- Best regards, Aleksander Alekseev v2-0001-Replace-LocalAlloc-LocalFree-with-HeapAlloc-HeapF.patch Description: Binary data

Re: Avoid use deprecated Windows Memory API

2022-09-15 Thread Aleksander Alekseev
sting applications, as the company always did. -- Best regards, Aleksander Alekseev

Re: Add common function ReplicationOriginName.

2022-09-19 Thread Aleksander Alekseev
nc() and similar functions in tablesync.c. However I would like to mention this in case the committer will be interested in replacing ints with Size's while on it. -- Best regards, Aleksander Alekseev

Re: HOT chain validation in verify_heapam()

2022-09-19 Thread Aleksander Alekseev
v4 I elected to initialize both curr_xmax and next_xmin with InvalidTransactionId for safety and in order to silence the compiler but still there is no way this condition can succeed. Please make sure there is no logic missing. -- Best regards, Aleksander Alekseev v4-0001-Implement-HOT-chain-v

Re: HOT chain validation in verify_heapam()

2022-09-19 Thread Aleksander Alekseev
t format-patch`. -- Best regards, Aleksander Alekseev

Re: Add common function ReplicationOriginName.

2022-09-20 Thread Aleksander Alekseev
> introduce this new function. OK, here is the updated patchset. * 0001 replaces int's with Size's in the existing code * 0002 applies Peter's patch on top of 0001 -- Best regards, Aleksander Alekseev v2-0001-Pass-Size-as-a-2nd-argument-for-snprintf-in-table.patch Descript

Re: Summary function for pg_buffercache

2022-09-20 Thread Aleksander Alekseev
er hackers will report any issues. -- Best regards, Aleksander Alekseev v7-0001-Added-pg_buffercache_summary-function.patch Description: Binary data

Re: Summary function for pg_buffercache

2022-09-20 Thread Aleksander Alekseev
Hi hackers, > Here is a corrected patch v7. To me it seems to be in pretty good > shape, unless cfbot and/or other hackers will report any issues. There was a missing empty line in pg_buffercache.out which made the tests fail. Here is a corrected v8 patch. -- Best regards, Aleksander Al

Re: Summary function for pg_buffercache

2022-09-20 Thread Aleksander Alekseev
f scope of the proposed patch. [1]: https://www.postgresql.org/docs/current/pgbuffercache.html -- Best regards, Aleksander Alekseev

Re: Summary function for pg_buffercache

2022-09-21 Thread Aleksander Alekseev
Hi Andres, > All you need to do is to read BufferDesc->state into a local variable and > then make decisions based on that You are right, thanks. Here is the corrected patch. -- Best regards, Aleksander Alekseev v9-0001-Added-pg_buffercache_summary-function.patch Description: Binary data

Re: RFI: Extending the TOAST Pointer

2023-05-18 Thread Aleksander Alekseev
45497863cd3c49a3ad0#l178 -- Best regards, Aleksander Alekseev

Re: [PATCH] Allow Postgres to pick an unused port to listen

2023-05-18 Thread Aleksander Alekseev
the simpler option Agree. However, I think we will have to add the display of the port number to "pg_ctl status" too, for the sake of consistency [1]. [1]: https://www.postgresql.org/docs/current/app-pg-ctl.html -- Best regards, Aleksander Alekseev

Re: RFI: Extending the TOAST Pointer

2023-05-18 Thread Aleksander Alekseev
approach. Also I agree that this particular statement is incorrect: > This will allow us to extend the pointers indefinitely. varatt_external is going to be limited to 255. But it seems to be a reasonable limitation for the nearest 10-20 years or so. [1]: https://commitfest.postgresql.org/39/3820/ -- Best regards, Aleksander Alekseev

Re: RFI: Extending the TOAST Pointer

2023-05-18 Thread Aleksander Alekseev
or less about the same thing? It doesn't matter what will be used as a sign of presence of a varint bitmask in the pointer. My initial proposal to use ToastCompressionId for this is probably redundant since va_tag > 18 will already tell that. -- Best regards, Aleksander Alekseev

The documentation for READ COMMITTED may be incomplete or wrong

2023-05-18 Thread Aleksander Alekseev
vior doesn't contradict the general guarantees promised by READ COMMITTED. Perhaps we should update the documentation for this case, or maybe remove the quoted part of it. Thoughts? [1]: https://www.postgresql.org/docs/current/transaction-iso.html -- Best regards, Aleksander Alekseev

Re: The documentation for READ COMMITTED may be incomplete or wrong

2023-05-18 Thread Aleksander Alekseev
obtain lock on the current tuple version in each such relation before executing the recheck. """ [1]: https://github.com/postgres/postgres/blob/master/src/backend/executor/README#L381 -- Best regards, Aleksander Alekseev

Re: The documentation for READ COMMITTED may be incomplete or wrong

2023-05-19 Thread Aleksander Alekseev
is untouched. The patch passed all the checks I could come up with. -- Best regards, Aleksander Alekseev

Re: How to connect with PostgreSQL Database with SSL using Certificates and Key from client Eclipse in Java

2023-05-19 Thread Aleksander Alekseev
tion and/or familiar with Java. I think you should address the question to pgsql-general@ mailing list or StackOverflow. (If you believe there is a bug in the DBMS core please provide simpler steps to reproduce, ideally with pgsql utility and maybe bash.) -- Best regards, Aleksander Alekseev

"38.10.10. Shared Memory and LWLocks" may require a clarification

2023-05-19 Thread Aleksander Alekseev
rocess memory. This memory will be inherited from postmaster by child processes and the overall memory usage is going to be the same due to copy-on-write. Perhaps we should clarify this. Thoughts? [1]: https://www.postgresql.org/docs/15/xfunc-c.html#XFUNC-SHARED-ADDIN -- Best regards, Aleksander Alekseev

<    2   3   4   5   6   7   8   9   10   >