Re: Understanding the differences between Temporal tables, CDC and Time Series.

2021-11-09 Thread Peter Eisentraut
On 10.11.21 07:43, SQL Padawan wrote: I'm looking into Temporal Tables (TT - i.e. System/Application time versioning) but I would like to understand the differences between TTs and two other features (which appear similar in many ways) - Change Data Capture and Time Series. Are Temporal Table

E.1.2. Migration to Version 14

2021-11-09 Thread Дмитрий Иванов
Hello! E.1.2 Migration to Version 14 array_append() , array_prepend(), array_cat(), array_position(), array_positions(), array_remove(), array_replace(), and width_bucket() <

Understanding the differences between Temporal tables, CDC and Time Series.

2021-11-09 Thread SQL Padawan
Good morning to everyone, I'm looking into Temporal Tables (TT - i.e. System/Application time versioning) but I would like to understand the differences between TTs and two other features (which appear similar in many ways) - Change Data Capture and Time Series. Are Temporal Tables (in a sense

Re: Logical Replication - Should Destination Table Columns Be Defined With Default Value

2021-11-09 Thread Mark Dilger
> On Nov 9, 2021, at 1:24 PM, Michael Lewis wrote: > > Is there any advantage to not defining the default on the replica? If it is > not a static value and the publishing database will trigger row updates, I > could see waiting to set the default until after the table re-write is done, > bu

Re: Logical Replication - Should Destination Table Columns Be Defined With Default Value

2021-11-09 Thread Michael Lewis
Is there any advantage to not defining the default on the replica? If it is not a static value and the publishing database will trigger row updates, I could see waiting to set the default until after the table re-write is done, but otherwise there doesn't seem to be any benefit to skipping column d

Re: Logical Replication - Should Destination Table Columns Be Defined With Default Value

2021-11-09 Thread Mark Dilger
> On Nov 9, 2021, at 8:02 AM, Avi Weinberg wrote: > > • A third column is added to table with default value on publisher > side, but without default value on subscriber side > • The default value column has value for existing rows on publisher, > but null on the subscriber side.

Re: Logical Replication - Should Destination Table Columns Be Defined With Default Value

2021-11-09 Thread Tom Lane
"David G. Johnston" writes: > On Tue, Nov 9, 2021 at 7:50 AM Avi Weinberg wrote: >> Was this done on purpose, that default value for new column is not copied >> for existing data? Does this mean that on destination side we must also >> define the table with default value? > If you run a command

RE: Logical Replication - Should Destination Table Columns Be Defined With Default Value

2021-11-09 Thread Avi Weinberg
Thanks David for the reply. I also thought that default value on the subscriber side are immaterial. However, with the case I showed without having default value on subscriber side it get null when the following occurs: 1. Table was created with two columns on publisher and subscriber side

Re: Logical Replication - Should Destination Table Columns Be Defined With Default Value

2021-11-09 Thread David G. Johnston
On Tue, Nov 9, 2021 at 7:50 AM Avi Weinberg wrote: > Was this done on purpose, that default value for new column is not copied > for existing data? Does this mean that on destination side we must also > define the table with default value? > Logical replication has two modes, initial synchroniz

Logical Replication - Should Destination Table Columns Be Defined With Default Value

2021-11-09 Thread Avi Weinberg
Hi Experts, I'm using logical replication and have the following open issue: If the table on the publisher side has column with default value, should the table on the destination (subscriber) be defined with default value as well? My intuition was not to define it with default value since it get

Query Timeout not working using jpa

2021-11-09 Thread Shubham Mittal
Hi Team, Can anyone help in setting the query timeout in postgres 12 using spring data jpa?? Currently using below code : query.setHint("javax.persistence.query.timeout", 1); Thanks & Regards, Shubham

Logical Replication - Type messages?

2021-11-09 Thread Stefen Hillman
Hello psql-general, I have an application which processes logical replication output from a PostgreSQL server. We create publications and read data from a replication slot with the pgoutput plugin. Postgres has various message formats for logical replication, as defined here: https://www.postgre