当前位置:网站首页>PostgreSQL views tables, table indexes, views, table structures, and parameter settings
PostgreSQL views tables, table indexes, views, table structures, and parameter settings
2022-07-25 01:50:00 【Xiao Guangbiao】
PostgreSQL See the table 、 Table index 、 View 、 Table structure and parameter settings
– Table index
select * from pg_indexes where tablename='person_wechat_label';
select * from pg_statio_all_indexes where relname='person_wechat_label';
– All tables
SELECT * FROM pg_tables;
– All views
SELECT * FROM pg_views;
– Table structure
SELECT a.attnum,a.attname AS field,t.typname AS type,a.attlen AS length,a.atttypmod AS lengthvar,a.attnotnull AS notnull,b.description AS comment FROM pg_class c,pg_attribute a LEFT OUTER JOIN pg_description b ON a.attrelid=b.objoid AND a.attnum = b.objsubid,pg_type t WHERE c.relname = 'person_wechat_label' and a.attnum > 0 and a.attrelid = c.oid and a.atttypid = t.oid ORDER BY a.attnum;
– Export data from a database to a file
\copy (select * from "user") to '/tmp/1.txt';
– Parameter setting :https://yq.aliyun.com/articles/697710
边栏推荐
- Introduction to ORM framework - what is ORM framework?
- [28. Maximum XOR pair]
- How to use ES6 async and await (basic)
- The most complete summary of MySQL data types in history - (first)
- Agreement on sharing agricultural scientific data in China
- Specificity and five applications of Worthington alcohol dehydrogenase
- G025-db-gs-ins-02 openeuler deployment opengauss (1 active and 1 standby)
- The introduction of 23 Filipino doctors for 18million was a hot topic, and the school teacher responded: expedient
- Talk about resume optimization and interview skills of algorithm post!
- [linear DP] Digital triangle
猜你喜欢

The introduction of 23 Filipino doctors for 18million was a hot topic, and the school teacher responded: expedient

Speed comparison between 64 bit width and 32 bit width of arm64 memory

Alibaba cloud released the white paper "upgrade - standardization of data warehouse upgrade delivery"

Target segmentation for 10000 frames of video, less than 1.4GB of video memory, open source code | ECCV 2022
10 commonly used data visualization tool software

Human cell prosci 4-1BB ligand recombinant protein scheme

C#/VB. Net insert watermark in word

6-10 vulnerability exploitation SMTP experimental environment construction
![[29. DFS depth is preferred]](/img/f1/f0c4302a1f7c14c206ff0bdf2eed5c.png)
[29. DFS depth is preferred]

2022.7.20 linear table
随机推荐
[25. Hash table]
Academicians said: researchers should also support their families. They can only do short-term and fast research if they are not promoted
Jsonp solves cross domain plug-ins (JS, TS)
JVM Foundation
About the relationship between parent process and child process (UAC bypass idea)
JS convert pseudo array to array
The most complete summary of MySQL data types in history - (first)
6-10 vulnerability exploitation SMTP experimental environment construction
Hbuilderx developed by uni app connects to night God simulator
Seven text editors that programmers should know are necessary for programming
Commonjs export import
[basic usage of STL]
Eolink - quickly develop interfaces through document driven
Alibaba cloud released the white paper "upgrade - standardization of data warehouse upgrade delivery"
Multi species tissue slide prosci pancreatic tissue solution
EasyX realizes button effect
[summer daily question] Luogu p1706 full ranking question
The difference between sigsuspend and sigwait
1260. Two dimensional grid migration: simple construction simulation problem
Thinkphp5.0.24 deserialization chain analysis