insert.sql 1.1 KB

12345678910111213141516171819202122232425
  1. --
  2. -- insert with DEFAULT in the target_list
  3. --
  4. create table inserttest (col1 int4, col2 int4 NOT NULL, col3 text default 'testing');
  5. --
  6. -- TOASTed value test
  7. --
  8. insert into inserttest values(30, 50, repeat('x', 10000));
  9. drop table inserttest;
  10. create table inserttest (f1 int, f2 int[],
  11. f3 insert_test_type, f4 insert_test_type[]);
  12. -- also check reverse-listing
  13. create table inserttest2 (f1 bigint, f2 text);
  14. drop table inserttest2;
  15. drop table inserttest;
  16. create table mlparted2 (b int not null, a int not null);
  17. create table mlparted5a (a int not null, c text, b int not null);
  18. create table mlparted5_b (d int, b int, c text, a int);
  19. -- check that the message shows the appropriate column description in a
  20. -- situation where the partitioned table is not the primary ModifyTable node
  21. create table inserttest3 (f1 text default 'foo', f2 text default 'bar', f3 int);
  22. drop table inserttest3;
  23. create table donothingbrtrig_test1 (b text, a int);
  24. create table donothingbrtrig_test2 (c text, b text, a int);
  25. create table returningwrtest2 (b text, c int, a int);