@@ -1779,44 +1779,44 @@ drop cascades to text search dictionary dict
1779
1779
CREATE TYPE test_type AS (a int);
1780
1780
\d test_type
1781
1781
Composite type "public.test_type"
1782
- Column | Type
1783
- --------+---------
1784
- a | integer
1782
+ Column | Type | Modifiers
1783
+ --------+---------+-----------
1784
+ a | integer |
1785
1785
1786
1786
ALTER TYPE nosuchtype ADD ATTRIBUTE b text; -- fails
1787
1787
ERROR: relation "nosuchtype" does not exist
1788
1788
ALTER TYPE test_type ADD ATTRIBUTE b text;
1789
1789
\d test_type
1790
1790
Composite type "public.test_type"
1791
- Column | Type
1792
- --------+---------
1793
- a | integer
1794
- b | text
1791
+ Column | Type | Modifiers
1792
+ --------+---------+-----------
1793
+ a | integer |
1794
+ b | text |
1795
1795
1796
1796
ALTER TYPE test_type ADD ATTRIBUTE b text; -- fails
1797
1797
ERROR: column "b" of relation "test_type" already exists
1798
1798
ALTER TYPE test_type ALTER ATTRIBUTE b SET DATA TYPE varchar;
1799
1799
\d test_type
1800
- Composite type "public.test_type"
1801
- Column | Type
1802
- --------+-------------------
1803
- a | integer
1804
- b | character varying
1800
+ Composite type "public.test_type"
1801
+ Column | Type | Modifiers
1802
+ --------+-------------------+-----------
1803
+ a | integer |
1804
+ b | character varying |
1805
1805
1806
1806
ALTER TYPE test_type ALTER ATTRIBUTE b SET DATA TYPE integer;
1807
1807
\d test_type
1808
1808
Composite type "public.test_type"
1809
- Column | Type
1810
- --------+---------
1811
- a | integer
1812
- b | integer
1809
+ Column | Type | Modifiers
1810
+ --------+---------+-----------
1811
+ a | integer |
1812
+ b | integer |
1813
1813
1814
1814
ALTER TYPE test_type DROP ATTRIBUTE b;
1815
1815
\d test_type
1816
1816
Composite type "public.test_type"
1817
- Column | Type
1818
- --------+---------
1819
- a | integer
1817
+ Column | Type | Modifiers
1818
+ --------+---------+-----------
1819
+ a | integer |
1820
1820
1821
1821
ALTER TYPE test_type DROP ATTRIBUTE c; -- fails
1822
1822
ERROR: column "c" of relation "test_type" does not exist
@@ -1825,18 +1825,18 @@ NOTICE: column "c" of relation "test_type" does not exist, skipping
1825
1825
ALTER TYPE test_type DROP ATTRIBUTE a, ADD ATTRIBUTE d boolean;
1826
1826
\d test_type
1827
1827
Composite type "public.test_type"
1828
- Column | Type
1829
- --------+---------
1830
- d | boolean
1828
+ Column | Type | Modifiers
1829
+ --------+---------+-----------
1830
+ d | boolean |
1831
1831
1832
1832
ALTER TYPE test_type RENAME ATTRIBUTE a TO aa;
1833
1833
ERROR: column "a" does not exist
1834
1834
ALTER TYPE test_type RENAME ATTRIBUTE d TO dd;
1835
1835
\d test_type
1836
1836
Composite type "public.test_type"
1837
- Column | Type
1838
- --------+---------
1839
- dd | boolean
1837
+ Column | Type | Modifiers
1838
+ --------+---------+-----------
1839
+ dd | boolean |
1840
1840
1841
1841
DROP TYPE test_type;
1842
1842
CREATE TYPE test_type1 AS (a int, b text);
@@ -1847,10 +1847,10 @@ CREATE TYPE test_type2 AS (a int, b text);
1847
1847
CREATE TABLE test_tbl2 OF test_type2;
1848
1848
\d test_type2
1849
1849
Composite type "public.test_type2"
1850
- Column | Type
1851
- --------+---------
1852
- a | integer
1853
- b | text
1850
+ Column | Type | Modifiers
1851
+ --------+---------+-----------
1852
+ a | integer |
1853
+ b | text |
1854
1854
1855
1855
\d test_tbl2
1856
1856
Table "public.test_tbl2"
@@ -1866,11 +1866,11 @@ HINT: Use ALTER ... CASCADE to alter the typed tables too.
1866
1866
ALTER TYPE test_type2 ADD ATTRIBUTE c text CASCADE;
1867
1867
\d test_type2
1868
1868
Composite type "public.test_type2"
1869
- Column | Type
1870
- --------+---------
1871
- a | integer
1872
- b | text
1873
- c | text
1869
+ Column | Type | Modifiers
1870
+ --------+---------+-----------
1871
+ a | integer |
1872
+ b | text |
1873
+ c | text |
1874
1874
1875
1875
\d test_tbl2
1876
1876
Table "public.test_tbl2"
@@ -1886,12 +1886,12 @@ ERROR: cannot alter type "test_type2" because it is the type of a typed table
1886
1886
HINT: Use ALTER ... CASCADE to alter the typed tables too.
1887
1887
ALTER TYPE test_type2 ALTER ATTRIBUTE b TYPE varchar CASCADE;
1888
1888
\d test_type2
1889
- Composite type "public.test_type2"
1890
- Column | Type
1891
- --------+-------------------
1892
- a | integer
1893
- b | character varying
1894
- c | text
1889
+ Composite type "public.test_type2"
1890
+ Column | Type | Modifiers
1891
+ --------+-------------------+-----------
1892
+ a | integer |
1893
+ b | character varying |
1894
+ c | text |
1895
1895
1896
1896
\d test_tbl2
1897
1897
Table "public.test_tbl2"
@@ -1908,10 +1908,10 @@ HINT: Use ALTER ... CASCADE to alter the typed tables too.
1908
1908
ALTER TYPE test_type2 DROP ATTRIBUTE b CASCADE;
1909
1909
\d test_type2
1910
1910
Composite type "public.test_type2"
1911
- Column | Type
1912
- --------+---------
1913
- a | integer
1914
- c | text
1911
+ Column | Type | Modifiers
1912
+ --------+---------+-----------
1913
+ a | integer |
1914
+ c | text |
1915
1915
1916
1916
\d test_tbl2
1917
1917
Table "public.test_tbl2"
@@ -1927,10 +1927,10 @@ HINT: Use ALTER ... CASCADE to alter the typed tables too.
1927
1927
ALTER TYPE test_type2 RENAME ATTRIBUTE a TO aa CASCADE;
1928
1928
\d test_type2
1929
1929
Composite type "public.test_type2"
1930
- Column | Type
1931
- --------+---------
1932
- aa | integer
1933
- c | text
1930
+ Column | Type | Modifiers
1931
+ --------+---------+-----------
1932
+ aa | integer |
1933
+ c | text |
1934
1934
1935
1935
\d test_tbl2
1936
1936
Table "public.test_tbl2"
0 commit comments