Skip to content

Commit d615448

Browse files
committed
docs
1 parent b160e4f commit d615448

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/postgres/query/schema.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,21 @@ pub(crate) fn select_table_and_view() -> SelectStatement {
4444
.equals((PgClass::Table, PgClass::Oid)),
4545
)
4646
.add(
47+
// List of possible value of the `relkind` column.
48+
// ========
49+
// r = ordinary table
50+
// i = index
51+
// S = sequence
52+
// t = TOAST table
53+
// v = view
54+
// m = materialized view
55+
// c = composite type
56+
// f = foreign table
57+
// p = partitioned table
58+
// I = partitioned index
59+
// Extracted from https://www.postgresql.org/docs/current/catalog-pg-class.html
60+
//
61+
// We want to select tables and views only.
4762
Expr::col((PgClass::Table, PgClass::Relkind))
4863
.is_in(["r", "t", "v", "m", "f", "p"]),
4964
),

0 commit comments

Comments
 (0)