Re: ERROR: no known snapshots

2021-05-12 Thread reg_pg_stefanz
On 12.05.2021 05:42, Tom Lane wrote: If you're in a position to apply the patch and see if it resolves your real non-simplified case, that would be very helpful. Also, this fix in principle will create a small performance penalty for FOR-loops in non-atomic contexts such as DO loops. It'd be int

ERROR: no known snapshots

2021-05-11 Thread reg_pg_stefanz
Hi it run into an issue with: ERROR:  no known snapshots It seems to me whenever I use a toasted value in a loop in plpgsql code  I get this error. Originally it happened in a procedure with a loop, without a setting of and explicit storage on the column, eg. extended. I can reproduce the erro

increase of xact_commit vs txid_current

2020-05-07 Thread reg_pg_stefanz
Hi, I am confused, the documentation says for pg_stat_database    xact_commit      Number of transactions in this database that have been committed and somewhere else     txid_current()    get current transaction ID, assigning a new one if the current transaction does not have one I would ha

Re: xmin and very high number of concurrent transactions

2019-03-12 Thread reg_pg_stefanz
I may have misunderstood the documentation or your question, but I had the understanding that xmin is not updated, but is only set on insert (but yes, also for update, but updates are also inserts for Postgres as updates are executed as delete/insert) from https://www.postgresql.org/docs/10/ddl

Re: TPC-DS queries

2019-03-11 Thread reg_pg_stefanz
Hi, I think that the sql is not valid. Based on the order by documentation, a column label cannot be used in an expression. from    https://www.postgresql.org/docs/11/queries-order.html > Note that an output column name has to stand alone, that is, it cannot be used in an expression. R

Re: delete on table with many partitions uses a lot of ram

2019-03-10 Thread reg_pg_stefanz
I must have missed this, I did not immediately realize there was a difference between select and delete Thanks for the explanation and outlook. Stefan

delete on table with many partitions uses a lot of ram

2019-03-09 Thread reg_pg_stefanz
Hi, I noticed that a delete on a table with many partitions seems to be using a lot of ram. It seems to occur during the planing phase, as  explain behaves the same as the actual execution of the delete. On the simplified test below for 4000 partitions it seems to be using for a short time o