Skip to content

Commit f0e8cfd

Browse files
committed
Indexes post
List indexes query
1 parent b38dfe7 commit f0e8cfd

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ These are copied from elsewhere on the Internet and the original source will be
1111
* [pg_squeeze](https://github.com/cybertec-postgresql/pg_squeeze)
1212
* [Reduce disk bloat in PostgreSQL](https://www.redpill-linpro.com/sysadvent/2017/12/08/pg_repack.html)
1313
* [Annotated.conf](https://github.com/jberkus/annotated.conf)
14+
* [Postgres Index stats and Query Optimization](https://sgerogia.github.io/Postgres-Index-And-Queries/)

list_indexes.sql

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
SELECT
2+
tablename,
3+
indexname,
4+
indexdef
5+
FROM
6+
pg_indexes
7+
WHERE
8+
schemaname = 'public'
9+
ORDER BY
10+
tablename,
11+
indexname;

0 commit comments

Comments
 (0)