当前位置:网站首页>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
边栏推荐
- Academicians said: researchers should also support their families. They can only do short-term and fast research if they are not promoted
- Interpretation of video generation paper of fed shot video to video (neurips 2019)
- What do growth enterprises need most to build a data-driven organization?
- Service address dynamic awareness of Nacos registry
- Take C language from 0 to 1 - program structure and use examples
- Open source demo | release of open source example of arcall applet
- Create thread: pthread_ create
- Alibaba cloud released the white paper "upgrade - standardization of data warehouse upgrade delivery"
- Pursue and kill "wallet Assassin" all over the network
- Promise basic use
猜你喜欢

Kubernetes creates a user with dashboard read-only permission (with exec permission)
![Deamnet|filenotfounderror: [winerror 3] the system cannot find the specified path.: '/ Datasettest\\Set12‘](/img/7c/0af10dceb20c0b392d0bab749eb355.png)
Deamnet|filenotfounderror: [winerror 3] the system cannot find the specified path.: '/ Datasettest\\Set12‘

Turn: emotional internal friction is the biggest source of inefficiency in your life

Eolink - quickly develop interfaces through document driven
Windows Server 2022 received a non security update in July: fix the sticking problem caused by defender

Beijing Zhun electric clock, Beidou clock server, GPS network time server, NTP satellite timing system

Several application scenarios of NAT

Inventory of well-known source code mall systems at home and abroad

Peripherals: interrupt system of keys and CPU

Opengauss kernel analysis: query rewriting
随机推荐
Harbor installation
Start to build a three node Eureka cluster
[27. Expression evaluation (infix expression)]
Research and application of scientific data management strategy for high energy synchrotron radiation source
Plug ins QRcode and ityped
xts performance auto fix script
The difference between sigsuspend and sigwait
POM reports an error
Take the first place in the International Olympic Games in mathematics, physics and chemistry, and win all the gold medals. Netizen: the Chinese team is too good
Young people who lost the IPO
PG Optimization -- execution plan
Academicians said: researchers should also support their families. They can only do short-term and fast research if they are not promoted
Multithreading and high concurrency (II) -- synchronized locking and unlocking process
Point to point copy and paste of web pages
Prosci anti-CD22 antibody epratuzum28 flow cytometry display
The position of the nth occurrence of MySQL in the string
JVM Foundation
Windows Server 2022 received a non security update in July: fix the sticking problem caused by defender
Chip sold at sand price: Lei Jun's dream was "ruined" by this company
Guide to the construction of network security testing laboratory - Chapter 1, section 1.5 key terms