Skip to content

Commit 1dc0c6e

Browse files
committed
Readme improvements
1 parent 52e21e7 commit 1dc0c6e

File tree

1 file changed

+28
-4
lines changed

1 file changed

+28
-4
lines changed

README.md

+28-4
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ SELECT s_name, v_name, description
112112
└────────┴───────────┴────────────────────────────────────────────────────────────────────┘
113113
```
114114

115-
> The views wrap around functions with the same name and enforce `WHERE NOT system_object`. Query the functions to include system_objects in the results.
115+
> PgDD views wrap around functions with the same name and enforce `WHERE NOT system_object`. Query the functions to include `system_object` results. e.g. `SELECT s_name, v_name FROM dd.views() WHERE system_object;`
116116
117117

118118
### Schema
@@ -171,7 +171,30 @@ SELECT t_name, size_pretty, rows, bytes_per_row
171171
### Columns
172172

173173
```sql
174-
SELECT * FROM dd.columns;
174+
SELECT source_type, s_name, t_name, c_name, data_type
175+
FROM dd.columns
176+
WHERE data_type LIKE 'int%'
177+
;
178+
```
179+
180+
```
181+
┌─────────────┬────────┬─────────────┬────────────────┬───────────┐
182+
│ source_type │ s_name │ t_name │ c_name │ data_type │
183+
╞═════════════╪════════╪═════════════╪════════════════╪═══════════╡
184+
│ table │ dd │ meta_schema │ meta_schema_id │ int8 │
185+
│ table │ dd │ meta_table │ meta_table_id │ int8 │
186+
│ table │ dd │ meta_column │ meta_column_id │ int8 │
187+
│ view │ dd │ schemas │ table_count │ int8 │
188+
│ view │ dd │ schemas │ view_count │ int8 │
189+
│ view │ dd │ schemas │ function_count │ int8 │
190+
│ view │ dd │ schemas │ size_bytes │ int8 │
191+
│ view │ dd │ tables │ size_bytes │ int8 │
192+
│ view │ dd │ tables │ rows │ int8 │
193+
│ view │ dd │ tables │ bytes_per_row │ int8 │
194+
│ view │ dd │ views │ rows │ int8 │
195+
│ view │ dd │ views │ size_bytes │ int8 │
196+
│ view │ dd │ columns │ position │ int8 │
197+
└─────────────┴────────┴─────────────┴────────────────┴───────────┘
175198
```
176199

177200

@@ -180,8 +203,9 @@ SELECT * FROM dd.columns;
180203

181204

182205
```sql
183-
SELECT *
184-
FROM dd.fuctions;
206+
SELECT s_name, f_name, argument_data_types, result_data_types
207+
FROM dd.functions
208+
;
185209
```
186210

187211

0 commit comments

Comments
 (0)