Postgres 12 - default value for text column - Mailing list pgsql-general

From Raj Gandhi
Subject Postgres 12 - default value for text column
Date
Msg-id CALU_HCMK1Ws6RbF3bupWrZ35kXsyTTzbeCM_njC2+8-aXM9PBQ@mail.gmail.com
Whole thread Raw
Responses Re: Postgres 12 - default value for text column  (David Rowley <dgrowleyml@gmail.com>)
List pgsql-general

The following alter table with default set to very large text used to work in Postgres 10 but fails in Postgres 12 with ERROR:  row is too big: size 12960, maximum size 8160

create table test (id int);
alter table test1 add column license text DEFAULT   '<insert default text with size more than 8160 >'


The following two variants works in Postgres 12 without any error:

create table test (id int);
alter table test1 add column license text   
alter table test1 alter column license SET DEFAULT   '<insert default text with size more than 8160 >'  

create table test (id int, license text  DEFAULT   '<insert default text with size more than 8160 >' );

Thanks in advance.

pgsql-general by date:

Previous
From: Mariya Rampurawala
Date:
Subject: PostgreSQL-12 replication. Check replication lag
Next
From: Dan shmidt
Date:
Subject: Logical replication from multiple masters - master starvation