another bug? drop table gtest12v; CREATE TABLE gtest12v (a int PRIMARY KEY, b bigint, c int GENERATED ALWAYS AS (b * 2) VIRTUAL); insert into gtest12v (a,b) values (11, 22147483647); table gtest12v;
insert ok, but select error: ERROR: integer out of range should insert fail? CREATE TABLE gtest12v (a int PRIMARY KEY, b bigint, c int GENERATED ALWAYS AS (b * 2) VIRTUAL); CREATE SEQUENCE sequence_testx OWNED BY gtest12v.c; seems to work. But I am not sure if there are any corner cases that make it not work. just want to raise this issue.