我正在使用 Postgres 9.4,以及最近分析过的数据库。这些是我的表:
Materialized view "public.vw_chemical_summary_by_ccg"
Column | Type | Modifiers
-----------------+----------------------+-----------
processing_date | date |
pct_id | character varying(3) |
chemical_id | character varying(9) |
items | bigint |
cost | double precision |
Indexes:
"vw_idx_chem_by_ccg_chem_id" btree (chemical_id)
"vw_idx_chem_by_ccg_chem_id_vc" btree (chemical_id varchar_pattern_ops)
"vw_idx_chem_by_ccg_joint_id" btree (pct_id, chemical_id)
Table "public.frontend_pct"
Column | Type | Modifiers
-------------------+-------------------------+-----------
code | character varying(3) | not null
name | character varying(200) |
org_type | character varying(9) | not null
Indexes:
"frontend_pct_pkey" PRIMARY KEY, btree (code) …Run Code Online (Sandbox Code Playgroud) postgresql ×1