回答編集履歴

2

追記

2019/06/19 00:51

投稿

sazi
sazi

スコア25195

test CHANGED
@@ -37,3 +37,11 @@
37
37
  order by table_schema, table_name, ordinal_position
38
38
 
39
39
  ```
40
+
41
+ 追記
42
+
43
+ --
44
+
45
+ バックアップはテキストベースで出力も可能ですので、それを検索してはどうでしょうか
46
+
47
+ pgadmin3でバックアップの形式をplainで指定すれば、バックアップされたファイルをテキストエディタで値が確認できます。

1

追記

2019/06/19 00:51

投稿

sazi
sazi

スコア25195

test CHANGED
@@ -17,3 +17,23 @@
17
17
  order by table_schema, table_name, ordinal_position
18
18
 
19
19
  ```
20
+
21
+ data_typeがARRAYの場合も考慮する場合は、[element_types](https://www.postgresql.jp/document/10/html/infoschema-element-types.html)も合わせて参照するようにします。
22
+
23
+ ```SQL
24
+
25
+ select table_schema, table_name, c.column_name, c.data_type, e.data_type
26
+
27
+ from information_schema.columns c
28
+
29
+ LEFT JOIN information_schema.element_types e
30
+
31
+ ON ((c.table_catalog, c.table_schema, c.table_name, 'TABLE', c.dtd_identifier)
32
+
33
+ = (e.object_catalog, e.object_schema, e.object_name, e.object_type, e.collection_type_identifier))
34
+
35
+ where table_name in (select relname from pg_stat_user_tables)
36
+
37
+ order by table_schema, table_name, ordinal_position
38
+
39
+ ```