PostgreSQL Physical Directory Layout
Installation Directory Layout
[postgres@pgdb02 ~]$ ls -ltr /usr/pgsql-17/
total 16
drwxr-xr-x. 3 postgres postgres 23 Jun 4 20:38 doc
drwxr-xr-x. 8 postgres postgres 4096 Jun 22 21:08 share
drwxr-xr-x. 2 postgres postgres 4096 Jun 22 21:08 bin
drwxr-xr-x. 3 postgres postgres 4096 Jun 22 21:08 lib
[postgres@pgdb02 ~]$
[postgres@pgdb02 ~]$ ls -lt /usr/pgsql-17/bin
total 14492
-rwxr-xr-x. 1 postgres postgres 71072 May 21 13:49 clusterdb
-rwxr-xr-x. 1 postgres postgres 75240 May 21 13:49 createdb
-rwxr-xr-x. 1 postgres postgres 75624 May 21 13:49 createuser
-rwxr-xr-x. 1 postgres postgres 66632 May 21 13:49 dropdb
-rwxr-xr-x. 1 postgres postgres 66576 May 21 13:49 dropuser
-rwxr-xr-x. 1 postgres postgres 113288 May 21 13:49 initdb
-rwxr-xr-x. 1 postgres postgres 41400 May 21 13:49 oid2name
-rwxr-xr-x. 1 postgres postgres 96824 May 21 13:49 pg_amcheck
-rwxr-xr-x. 1 postgres postgres 41056 May 21 13:49 pg_archivecleanup
-rwxr-xr-x. 1 postgres postgres 142928 May 21 13:49 pg_basebackup
-rwxr-xr-x. 1 postgres postgres 162984 May 21 13:49 pgbench
-rwxr-xr-x. 1 postgres postgres 49632 May 21 13:49 pg_checksums
-rwxr-xr-x. 1 postgres postgres 116872 May 21 13:49 pg_combinebackup
-rwxr-xr-x. 1 postgres postgres 36656 May 21 13:49 pg_config
-rwxr-xr-x. 1 postgres postgres 44984 May 21 13:49 pg_controldata
-rwxr-xr-x. 1 postgres postgres 70768 May 21 13:49 pg_createsubscriber
-rwxr-xr-x. 1 postgres postgres 62296 May 21 13:49 pg_ctl
-rwxr-xr-x. 1 postgres postgres 447368 May 21 13:49 pg_dump
-rwxr-xr-x. 1 postgres postgres 117680 May 21 13:49 pg_dumpall
-rwxr-xr-x. 1 postgres postgres 36952 May 21 13:49 pg_isready
-rwxr-xr-x. 1 postgres postgres 92000 May 21 13:49 pg_receivewal
-rwxr-xr-x. 1 postgres postgres 54544 May 21 13:49 pg_recvlogical
-rwxr-xr-x. 1 postgres postgres 53808 May 21 13:49 pg_resetwal
-rwxr-xr-x. 1 postgres postgres 194496 May 21 13:49 pg_restore
-rwxr-xr-x. 1 postgres postgres 108584 May 21 13:49 pg_rewind
-rwxr-xr-x. 1 postgres postgres 41120 May 21 13:49 pg_test_fsync
-rwxr-xr-x. 1 postgres postgres 32632 May 21 13:49 pg_test_timing
-rwxr-xr-x. 1 postgres postgres 171856 May 21 13:49 pg_upgrade
-rwxr-xr-x. 1 postgres postgres 95928 May 21 13:49 pg_verifybackup
-rwxr-xr-x. 1 postgres postgres 95968 May 21 13:49 pg_waldump
-rwxr-xr-x. 1 postgres postgres 41184 May 21 13:49 pg_walsummary
-rwxr-xr-x. 1 postgres postgres 10875088 May 21 13:49 postgres
-rwxr-xr-x. 1 postgres postgres 729400 May 21 13:49 psql
-rwxr-xr-x. 1 postgres postgres 83816 May 21 13:49 reindexdb
-rwxr-xr-x. 1 postgres postgres 88344 May 21 13:49 vacuumdb
-rwxr-xr-x. 1 postgres postgres 41200 May 21 13:49 vacuumlo
-rwxr-xr-x. 1 postgres postgres 2167 May 21 13:49 postgresql-17-check-db-dir
-rwxr-xr-x. 1 postgres postgres 9617 May 21 13:49 postgresql-17-setup
[postgres@pgdb02 ~]$
Database (Data) Directory Layout
[postgres@pgdb02 ~]$ ls -l /pgData/pgsql17/data
total 68
drwx------. 9 postgres postgres 89 Jun 30 19:40 base
-rw-------. 1 postgres postgres 30 Jul 3 14:30 current_logfiles
drwx------. 2 postgres postgres 4096 Jul 3 14:58 global
drwx------. 2 postgres postgres 162 Jul 3 00:00 log
drwx------. 2 postgres postgres 6 Jun 22 21:11 pg_commit_ts
drwx------. 2 postgres postgres 6 Jun 22 21:11 pg_dynshmem
-rw-------. 1 postgres postgres 5798 Jun 29 23:45 pg_hba.conf
-rw-------. 1 postgres postgres 2640 Jun 22 21:11 pg_ident.conf
drwx------. 4 postgres postgres 68 Jul 3 14:30 pg_logical
drwx------. 4 postgres postgres 36 Jun 22 21:11 pg_multixact
drwx------. 2 postgres postgres 6 Jun 22 21:11 pg_notify
drwx------. 2 postgres postgres 6 Jun 22 21:11 pg_replslot
drwx------. 2 postgres postgres 6 Jun 22 21:11 pg_serial
drwx------. 2 postgres postgres 6 Jun 22 21:11 pg_snapshots
drwx------. 2 postgres postgres 6 Jul 3 14:29 pg_stat
drwx------. 2 postgres postgres 6 Jun 22 21:11 pg_stat_tmp
drwx------. 2 postgres postgres 18 Jun 22 21:11 pg_subtrans
drwx------. 2 postgres postgres 19 Jul 2 18:32 pg_tblspc
drwx------. 2 postgres postgres 6 Jun 22 21:11 pg_twophase
-rw-------. 1 postgres postgres 3 Jun 22 21:11 PG_VERSION
lrwxrwxrwx. 1 postgres postgres 18 Jun 22 21:11 pg_wal -> /pgWal/pgsql17/wal
drwx------. 2 postgres postgres 18 Jun 22 21:11 pg_xact
-rw-------. 1 postgres postgres 88 Jun 22 21:11 postgresql.auto.conf
-rw-------. 1 postgres postgres 30881 Jun 29 23:37 postgresql.conf
-rw-------. 1 postgres postgres 55 Jul 3 14:30 postmaster.opts
-rw-------. 1 postgres postgres 89 Jul 3 14:30 postmaster.pid
[postgres@pgdb02 ~]$
| Name | Directory or File | Description |
|---|---|---|
| base | Directory | Contains subdirectories for each database. Each database is stored using its own database OID. |
| current_logfiles | File | Stores information about the log file currently being written by the logging collector process. |
| global | Directory | Contains cluster-wide shared system catalog tables such as pg_database, pg_authid, pg_tablespace, etc. |
| log | Directory | Stores PostgreSQL server logs and error log files. |
| pg_commit_ts | Directory | Stores transaction commit timestamp data when track_commit_timestamp is enabled. |
| pg_dynshmem | Directory | Stores files used by PostgreSQL dynamic shared memory subsystem. |
| pg_hba.conf | File | Client authentication configuration file. Controls which users and hosts can connect. |
| pg_ident.conf | File | Stores user name mapping rules between operating system users and database users. |
| pg_logical | Directory | Stores metadata and status information used for logical replication and logical decoding. |
| pg_multixact | Directory | Stores multitransaction status information used for shared row-level locking. |
| pg_notify | Directory | Stores LISTEN and NOTIFY asynchronous notification status data. |
| pg_replslot | Directory | Stores physical and logical replication slot information. |
| pg_serial | Directory | Stores metadata related to committed serializable transactions. |
| pg_snapshots | Directory | Stores exported transaction snapshot files. |
| pg_stat | Directory | Stores permanent statistics data used by PostgreSQL statistics subsystem. |
| pg_stat_tmp | Directory | Stores temporary statistics files generated by statistics collector. |
| pg_subtrans | Directory | Stores subtransaction status information for nested transactions. |
| pg_tblspc | Directory | Contains symbolic links pointing to user-created tablespaces. |
| pg_twophase | Directory | Stores prepared transaction state files used for two-phase commit. |
| PG_VERSION | File | Stores the PostgreSQL major version number of the database cluster. |
| pg_wal | Directory (Symlink) | Stores WAL (Write Ahead Log) files for crash recovery and replication. Example: /pgWal/pgsql17/wal |
| pg_xact | Directory | Stores transaction commit status information and transaction metadata logs. |
| postgresql.auto.conf | File | Stores configuration parameters automatically updated by ALTER SYSTEM. |
| postgresql.conf | File | Main PostgreSQL configuration file containing server parameter settings. |
| postmaster.opts | File | Stores command-line options used when PostgreSQL server was last started. |
| postmaster.pid | File | Stores Postmaster PID, startup time, port number, socket path, listen address, and shared memory details. |
Difference between Base Directory and Global Directory
In PostgreSQL, both theΒ Base DirectoryΒ and theΒ Global DirectoryΒ reside within theΒ PGDATAΒ (the data cluster) folder. The primary difference lies in theΒ scopeΒ andΒ type of dataΒ they store.
postgres=# \db List of tablespaces Name | Owner | Location ------------+----------+---------- pg_default | postgres | <----- pg_default physical location: Located at $PGDATA/base/ pg_global | postgres | <----- pg_global physical location: Located at $PGDATA/global/ (2 rows) postgres=# -- List of Files and Directoires from Global Directory [postgres@lxceftsgvdb01 ~]$ ls -la /pgData/pgsql17/data/global total 580 drwx------. 2 postgres postgres 4096 Jul 3 16:03 . drwx------. 19 postgres postgres 4096 Jul 3 16:01 .. -rw-------. 1 postgres postgres 8192 Jul 3 16:01 1213 -rw-------. 1 postgres postgres 24576 Jul 3 16:01 1213_fsm -rw-------. 1 postgres postgres 8192 Jul 3 16:01 1213_vm -rw-------. 1 postgres postgres 0 Jul 3 16:01 1214 -rw-------. 1 postgres postgres 8192 Jul 3 16:01 1232 -rw-------. 1 postgres postgres 8192 Jul 3 16:01 1233 -rw-------. 1 postgres postgres 8192 Jul 3 16:01 1260 -rw-------. 1 postgres postgres 24576 Jul 3 16:01 1260_fsm -rw-------. 1 postgres postgres 8192 Jul 3 16:01 1260_vm -rw-------. 1 postgres postgres 8192 Jul 3 16:01 1261 -rw-------. 1 postgres postgres 24576 Jul 3 16:01 1261_fsm -rw-------. 1 postgres postgres 8192 Jul 3 16:01 1261_vm -rw-------. 1 postgres postgres 8192 Jul 3 16:01 1262 -rw-------. 1 postgres postgres 24576 Jul 3 16:01 1262_fsm -rw-------. 1 postgres postgres 8192 Jul 3 16:01 1262_vm -rw-------. 1 postgres postgres 8192 Jul 3 16:01 2396 -rw-------. 1 postgres postgres 24576 Jul 3 16:01 2396_fsm -rw-------. 1 postgres postgres 8192 Jul 3 16:01 2396_vm -rw-------. 1 postgres postgres 16384 Jul 3 16:01 2397 -rw-------. 1 postgres postgres 16384 Jul 3 16:01 2671 -rw-------. 1 postgres postgres 16384 Jul 3 16:01 2672 -rw-------. 1 postgres postgres 16384 Jul 3 16:01 2676 -rw-------. 1 postgres postgres 16384 Jul 3 16:01 2677 -rw-------. 1 postgres postgres 16384 Jul 3 16:01 2694 -rw-------. 1 postgres postgres 16384 Jul 3 16:01 2695 -rw-------. 1 postgres postgres 16384 Jul 3 16:01 2697 -rw-------. 1 postgres postgres 16384 Jul 3 16:01 2698 -rw-------. 1 postgres postgres 0 Jul 3 16:01 2846 -rw-------. 1 postgres postgres 8192 Jul 3 16:01 2847 -rw-------. 1 postgres postgres 0 Jul 3 16:01 2964 -rw-------. 1 postgres postgres 8192 Jul 3 16:01 2965 -rw-------. 1 postgres postgres 0 Jul 3 16:01 2966 -rw-------. 1 postgres postgres 8192 Jul 3 16:01 2967 -rw-------. 1 postgres postgres 0 Jul 3 16:01 3592 -rw-------. 1 postgres postgres 8192 Jul 3 16:01 3593 -rw-------. 1 postgres postgres 0 Jul 3 16:01 4060 -rw-------. 1 postgres postgres 8192 Jul 3 16:01 4061 -rw-------. 1 postgres postgres 0 Jul 3 16:01 4175 -rw-------. 1 postgres postgres 8192 Jul 3 16:01 4176 -rw-------. 1 postgres postgres 0 Jul 3 16:01 4177 -rw-------. 1 postgres postgres 8192 Jul 3 16:01 4178 -rw-------. 1 postgres postgres 0 Jul 3 16:01 4181 -rw-------. 1 postgres postgres 8192 Jul 3 16:01 4182 -rw-------. 1 postgres postgres 0 Jul 3 16:01 4183 -rw-------. 1 postgres postgres 8192 Jul 3 16:01 4184 -rw-------. 1 postgres postgres 0 Jul 3 16:01 4185 -rw-------. 1 postgres postgres 8192 Jul 3 16:01 4186 -rw-------. 1 postgres postgres 0 Jul 3 16:01 6000 -rw-------. 1 postgres postgres 8192 Jul 3 16:01 6001 -rw-------. 1 postgres postgres 8192 Jul 3 16:01 6002 -rw-------. 1 postgres postgres 0 Jul 3 16:01 6100 -rw-------. 1 postgres postgres 8192 Jul 3 16:01 6114 -rw-------. 1 postgres postgres 8192 Jul 3 16:01 6115 -rw-------. 1 postgres postgres 0 Jul 3 16:01 6243 -rw-------. 1 postgres postgres 0 Jul 3 16:01 6244 -rw-------. 1 postgres postgres 8192 Jul 3 16:01 6245 -rw-------. 1 postgres postgres 8192 Jul 3 16:01 6246 -rw-------. 1 postgres postgres 8192 Jul 3 16:01 6247 -rw-------. 1 postgres postgres 16384 Jul 3 16:01 6302 -rw-------. 1 postgres postgres 16384 Jul 3 16:01 6303 -rw-------. 1 postgres postgres 8192 Jul 3 16:06 pg_control -rw-------. 1 postgres postgres 524 Jul 3 16:01 pg_filenode.map -rw-------. 1 postgres postgres 28724 Jul 3 16:03 pg_internal.init [postgres@lxceftsgvdb01 ~]$ -- List of Files and Directories from Base Directory [postgres@lxceftsgvdb01 ~]$ ls -la /pgData/pgsql17/data/base total 40 drwx------. 5 postgres postgres 33 Jul 3 16:01 . drwx------. 19 postgres postgres 4096 Jul 3 16:01 .. drwx------. 2 postgres postgres 8192 Jul 3 16:03 1 drwx------. 2 postgres postgres 8192 Jul 3 16:01 4 drwx------. 2 postgres postgres 8192 Jul 3 16:02 5 [postgres@lxceftsgvdb01 ~]$
1. The Global Directory (pg_global)
TheΒ globalΒ directory contains data that isΒ shared across the entire database cluster.
- Path:Β
$PGDATA/global/ - Scope:Β Cluster-wide.
- Contents:Β It stores “Shared System Catalogs.” These are tables that contain information applicable to every database in the instance.
- Key Files:
pg_database:Β Information about all databases in the cluster.pg_authid:Β User roles and passwords (since a user can log into any database in the cluster).pg_tablespace:Β Information about defined storage locations.
- Identification:Β Objects in this directory always have an OID (Object Identifier), but they do not belong to a specific database ID.
Lists only actual shared/global catalog tables (no indexes, no TOAST tables) from the global directory
-- Let's look at inside postgres global directory (only actual tables, excluding indexes and TOAST) [postgres@lxceftsgvdb01 ~]$ cat list_global_tables.sh #!/bin/bash cd $PGDATA # Header printf "%-8s | %-40s | %-10s | %-15s | %-10s\n" \ "OID" "OBJECT_NAME" "TABLEOID" "SCHEMA" "TABLESPACE" printf -- "-----------------------------------------------------------------------------------------------\n" # Loop through files in global directory for i in $(find global -maxdepth 1 -type f | awk -F/ '{print $2}' | egrep '^[0-9]' | egrep -v 'fsm|vm') do # Get object details from oid2name result=$(oid2name -x -S -q -o $i) # Parse fields oid=$(echo $result | awk '{print $1}') name=$(echo $result | awk '{print $2}') tableoid=$(echo $result | awk '{print $3}') schema=$(echo $result | awk '{print $4}') db=$(echo $result | awk '{print $5}') # Check relation type from pg_class relkind=$(psql -At -c "SELECT relkind FROM pg_class WHERE oid=$oid;" 2>/dev/null) # Show only actual tables (relkind = r) if [ "$relkind" = "r" ]; then printf "%-8s | %-40s | %-10s | %-15s | %-10s\n" \ "$oid" "$name" "$tableoid" "$schema" "$db" fi done [postgres@lxceftsgvdb01 ~]$ [postgres@lxceftsgvdb01 ~]$ ./list_global_tables.sh OID | OBJECT_NAME | TABLEOID | SCHEMA | TABLESPACE ----------------------------------------------------------------------------------------------- 1262 | pg_database | 1262 | pg_catalog | pg_global 2964 | pg_db_role_setting | 2964 | pg_catalog | pg_global 1213 | pg_tablespace | 1213 | pg_catalog | pg_global 1260 | pg_authid | 1260 | pg_catalog | pg_global 1261 | pg_auth_members | 1261 | pg_catalog | pg_global 1214 | pg_shdepend | 1214 | pg_catalog | pg_global 2396 | pg_shdescription | 2396 | pg_catalog | pg_global 6000 | pg_replication_origin | 6000 | pg_catalog | pg_global 3592 | pg_shseclabel | 3592 | pg_catalog | pg_global 6243 | pg_parameter_acl | 6243 | pg_catalog | pg_global 6100 | pg_subscription | 6100 | pg_catalog | pg_global [postgres@pgdb02 ~]$ [postgres@lxceftsgvdb01 ~]$ tree /pgData/pgsql17/data/global /pgData/pgsql17/data/global βββ 1213 βββ 1213_fsm βββ 1213_vm βββ 1214 βββ 1232 βββ 1233 βββ 1260 βββ 1260_fsm βββ 1260_vm βββ 1261 βββ 1261_fsm βββ 1261_vm βββ 1262 βββ 1262_fsm βββ 1262_vm βββ 2396 βββ 2396_fsm βββ 2396_vm βββ 2397 βββ 2671 βββ 2672 βββ 2676 βββ 2677 βββ 2694 βββ 2695 βββ 2697 βββ 2698 βββ 2846 βββ 2847 βββ 2964 βββ 2965 βββ 2966 βββ 2967 βββ 3592 βββ 3593 βββ 4060 βββ 4061 βββ 4175 βββ 4176 βββ 4177 βββ 4178 βββ 4181 βββ 4182 βββ 4183 βββ 4184 βββ 4185 βββ 4186 βββ 6000 βββ 6001 βββ 6002 βββ 6100 βββ 6114 βββ 6115 βββ 6243 βββ 6244 βββ 6245 βββ 6246 βββ 6247 βββ 6302 βββ 6303 βββ pg_control βββ pg_filenode.map βββ pg_internal.init 0 directories, 63 files [postgres@lxceftsgvdb01 ~]$
2. The Base Directory (pg_base)
TheΒ baseΒ directory contains theΒ actual user dataΒ and system catalogs that areΒ private to each specific database.
- Path:Β
$PGDATA/base/ - Scope:Β Database-specific.
- Structure:Β InsideΒ
base, there is a subdirectory for every database in the cluster, named after the database’s OID (e.g.,Β$PGDATA/base/16384/). - Contents:
- User Tables and Indexes:Β The actual data you insert into your tables.
- Local System Catalogs:Β Tables likeΒ
pg_class,Βpg_attribute, andΒpg_typeΒ which describe the structure of that specific database.
- Identification:Β If you want to find where a specific table is stored, you look inΒ
base/[Database OID]/[Table Filenode]
[postgres@pgdb02 ~]$ psql -c "SELECT oid, datname FROM pg_database order by oid;" oid | datname -----+----------- 1 | template1 4 | template0 5 | postgres (3 rows) [postgres@pgdb02 ~]$ [postgres@lxceftsgvdb01 ~]$ ls /pgData/pgsql17/data/base | sort -n 1 <---- template1 4 <---- template0 5 <---- postgres [postgres@pgdb02 ~]$ -- Let's look at inside postgres Base directory (only actual tables, excluding indexes and TOAST) [postgres@lxceftsgvdb01 ~]$ cat list_base_tables.sh #!/bin/bash export PGHOME=/usr/pgsql-17 export PGDATA=/pgData/pgsql17/data export PATH=$PGHOME/bin:$PATH DBNAME="postgres" # Get database OID DBOID=$(psql -At -d $DBNAME -c "SELECT oid FROM pg_database WHERE datname='$DBNAME'") # Header printf "%-8s | %-40s | %-10s | %-15s | %-10s\n" \ "OID" "OBJECT_NAME" "TABLEOID" "SCHEMA" "Tablespace" printf -- "-----------------------------------------------------------------------------------------------\n" # Use absolute path ($PGDATA/base/) for i in $(find $PGDATA/base/$DBOID -maxdepth 1 -type f | awk -F/ '{print $NF}' | egrep '^[0-9]' | egrep -v 'fsm|vm') do # Get object details result=$(oid2name -d $DBNAME -x -q -o $i) # Parse fields oid=$(echo "$result" | awk '{print $1}') name=$(echo "$result" | awk '{print $2}') tableoid=$(echo "$result" | awk '{print $3}') schema=$(echo "$result" | awk '{print $4}') db=$(echo "$result" | awk '{print $5}') # Check relation type relkind=$(psql -At -d $DBNAME -c "SELECT relkind FROM pg_class WHERE oid=$oid;" 2>/dev/null) # Show only actual tables if [ "$relkind" = "r" ]; then printf "%-8s | %-40s | %-10s | %-15s | %-10s\n" \ "$oid" "$name" "$tableoid" "$schema" "$db" fi done [postgres@lxceftsgvdb01 ~]$ [postgres@lxceftsgvdb01 ~]$ ./list_base_tables.sh OID | OBJECT_NAME | TABLEOID | SCHEMA | TABLESPACE ----------------------------------------------------------------------------------------------- 1255 | pg_proc | 1255 | pg_catalog | pg_default 1247 | pg_type | 1247 | pg_catalog | pg_default 1249 | pg_attribute | 1249 | pg_catalog | pg_default 1259 | pg_class | 1259 | pg_catalog | pg_default 2604 | pg_attrdef | 2604 | pg_catalog | pg_default 2606 | pg_constraint | 2606 | pg_catalog | pg_default 2611 | pg_inherits | 2611 | pg_catalog | pg_default 2610 | pg_index | 2610 | pg_catalog | pg_default 2617 | pg_operator | 2617 | pg_catalog | pg_default 2753 | pg_opfamily | 2753 | pg_catalog | pg_default 2616 | pg_opclass | 2616 | pg_catalog | pg_default 2601 | pg_am | 2601 | pg_catalog | pg_default 2602 | pg_amop | 2602 | pg_catalog | pg_default 2603 | pg_amproc | 2603 | pg_catalog | pg_default 2612 | pg_language | 2612 | pg_catalog | pg_default 2995 | pg_largeobject_metadata | 2995 | pg_catalog | pg_default 2613 | pg_largeobject | 2613 | pg_catalog | pg_default 2600 | pg_aggregate | 2600 | pg_catalog | pg_default 2619 | pg_statistic | 2619 | pg_catalog | pg_default 3381 | pg_statistic_ext | 3381 | pg_catalog | pg_default 3429 | pg_statistic_ext_data | 3429 | pg_catalog | pg_default 2618 | pg_rewrite | 2618 | pg_catalog | pg_default 2620 | pg_trigger | 2620 | pg_catalog | pg_default 3466 | pg_event_trigger | 3466 | pg_catalog | pg_default 2609 | pg_description | 2609 | pg_catalog | pg_default 2605 | pg_cast | 2605 | pg_catalog | pg_default 3501 | pg_enum | 3501 | pg_catalog | pg_default 2615 | pg_namespace | 2615 | pg_catalog | pg_default 2607 | pg_conversion | 2607 | pg_catalog | pg_default 2608 | pg_depend | 2608 | pg_catalog | pg_default 3602 | pg_ts_config | 3602 | pg_catalog | pg_default 3603 | pg_ts_config_map | 3603 | pg_catalog | pg_default 3600 | pg_ts_dict | 3600 | pg_catalog | pg_default 3601 | pg_ts_parser | 3601 | pg_catalog | pg_default 3764 | pg_ts_template | 3764 | pg_catalog | pg_default 3079 | pg_extension | 3079 | pg_catalog | pg_default 2328 | pg_foreign_data_wrapper | 2328 | pg_catalog | pg_default 1417 | pg_foreign_server | 1417 | pg_catalog | pg_default 1418 | pg_user_mapping | 1418 | pg_catalog | pg_default 3118 | pg_foreign_table | 3118 | pg_catalog | pg_default 3256 | pg_policy | 3256 | pg_catalog | pg_default 826 | pg_default_acl | 826 | pg_catalog | pg_default 3394 | pg_init_privs | 3394 | pg_catalog | pg_default 3596 | pg_seclabel | 3596 | pg_catalog | pg_default 3456 | pg_collation | 3456 | pg_catalog | pg_default 3350 | pg_partitioned_table | 3350 | pg_catalog | pg_default 3541 | pg_range | 3541 | pg_catalog | pg_default 3576 | pg_transform | 3576 | pg_catalog | pg_default 2224 | pg_sequence | 2224 | pg_catalog | pg_default 6104 | pg_publication | 6104 | pg_catalog | pg_default 6237 | pg_publication_namespace | 6237 | pg_catalog | pg_default 6106 | pg_publication_rel | 6106 | pg_catalog | pg_default 6102 | pg_subscription_rel | 6102 | pg_catalog | pg_default 14382 | sql_features | 14382 | information_schema | pg_default 14387 | sql_implementation_info | 14387 | information_schema | pg_default 14392 | sql_parts | 14392 | information_schema | pg_default 14397 | sql_sizing | 14397 | information_schema | pg_default [postgres@lxceftsgvdb01 ~]$ -- Let's look at inside postgres Base directory (Complete List) [postgres@lxceftsgvdb01 ~]$ tree /pgData/pgsql17/data/base/5 /pgData/pgsql17/data/base/5 βββ 112 βββ 113 βββ 1247 βββ 1247_fsm βββ 1247_vm βββ 1249 βββ 1249_fsm βββ 1249_vm βββ 1255 βββ 1255_fsm βββ 1255_vm βββ 1259 βββ 1259_fsm βββ 1259_vm βββ 1417 βββ 1418 βββ 14382 βββ 14382_fsm βββ 14382_vm βββ 14385 βββ 14386 βββ 14387 βββ 14387_fsm βββ 14387_vm βββ 14390 βββ 14391 βββ 14392 βββ 14392_fsm βββ 14392_vm βββ 14395 βββ 14396 βββ 14397 βββ 14397_fsm βββ 14397_vm βββ 14400 βββ 14401 βββ 174 βββ 175 βββ 2187 βββ 2224 βββ 2228 βββ 2328 βββ 2336 βββ 2337 βββ 2579 βββ 2600 βββ 2600_fsm βββ 2600_vm βββ 2601 βββ 2601_fsm βββ 2601_vm βββ 2602 βββ 2602_fsm βββ 2602_vm βββ 2603 βββ 2603_fsm βββ 2603_vm βββ 2604 βββ 2605 βββ 2605_fsm βββ 2605_vm βββ 2606 βββ 2606_fsm βββ 2606_vm βββ 2607 βββ 2607_fsm βββ 2607_vm βββ 2608 βββ 2608_fsm βββ 2608_vm βββ 2609 βββ 2609_fsm βββ 2609_vm βββ 2610 βββ 2610_fsm βββ 2610_vm βββ 2611 βββ 2612 βββ 2612_fsm βββ 2612_vm βββ 2613 βββ 2615 βββ 2615_fsm βββ 2615_vm βββ 2616 βββ 2616_fsm βββ 2616_vm βββ 2617 βββ 2617_fsm βββ 2617_vm βββ 2618 βββ 2618_fsm βββ 2618_vm βββ 2619 βββ 2619_fsm βββ 2619_vm βββ 2620 βββ 2650 βββ 2651 βββ 2652 βββ 2653 βββ 2654 βββ 2655 βββ 2656 βββ 2657 βββ 2658 βββ 2659 βββ 2660 βββ 2661 βββ 2662 βββ 2663 βββ 2664 βββ 2665 βββ 2666 βββ 2667 βββ 2668 βββ 2669 βββ 2670 βββ 2673 βββ 2674 βββ 2675 βββ 2678 βββ 2679 βββ 2680 βββ 2681 βββ 2682 βββ 2683 βββ 2684 βββ 2685 βββ 2686 βββ 2687 βββ 2688 βββ 2689 βββ 2690 βββ 2691 βββ 2692 βββ 2693 βββ 2696 βββ 2699 βββ 2701 βββ 2702 βββ 2703 βββ 2704 βββ 2753 βββ 2753_fsm βββ 2753_vm βββ 2754 βββ 2755 βββ 2756 βββ 2757 βββ 2830 βββ 2831 βββ 2832 βββ 2833 βββ 2834 βββ 2835 βββ 2836 βββ 2836_fsm βββ 2836_vm βββ 2837 βββ 2838 βββ 2838_fsm βββ 2838_vm βββ 2839 βββ 2840 βββ 2840_fsm βββ 2840_vm βββ 2841 βββ 2995 βββ 2996 βββ 3079 βββ 3079_fsm βββ 3079_vm βββ 3080 βββ 3081 βββ 3085 βββ 3118 βββ 3119 βββ 3164 βββ 3256 βββ 3257 βββ 3258 βββ 3350 βββ 3351 βββ 3379 βββ 3380 βββ 3381 βββ 3394 βββ 3394_fsm βββ 3394_vm βββ 3395 βββ 3429 βββ 3430 βββ 3431 βββ 3433 βββ 3439 βββ 3440 βββ 3455 βββ 3456 βββ 3456_fsm βββ 3456_vm βββ 3466 βββ 3467 βββ 3468 βββ 3501 βββ 3502 βββ 3503 βββ 3534 βββ 3541 βββ 3541_fsm βββ 3541_vm βββ 3542 βββ 3574 βββ 3575 βββ 3576 βββ 3596 βββ 3597 βββ 3598 βββ 3599 βββ 3600 βββ 3600_fsm βββ 3600_vm βββ 3601 βββ 3601_fsm βββ 3601_vm βββ 3602 βββ 3602_fsm βββ 3602_vm βββ 3603 βββ 3603_fsm βββ 3603_vm βββ 3604 βββ 3605 βββ 3606 βββ 3607 βββ 3608 βββ 3609 βββ 3712 βββ 3764 βββ 3764_fsm βββ 3764_vm βββ 3766 βββ 3767 βββ 3997 βββ 4143 βββ 4144 βββ 4145 βββ 4146 βββ 4147 βββ 4148 βββ 4149 βββ 4150 βββ 4151 βββ 4152 βββ 4153 βββ 4154 βββ 4155 βββ 4156 βββ 4157 βββ 4158 βββ 4159 βββ 4160 βββ 4163 βββ 4164 βββ 4165 βββ 4166 βββ 4167 βββ 4168 βββ 4169 βββ 4170 βββ 4171 βββ 4172 βββ 4173 βββ 4174 βββ 5002 βββ 548 βββ 549 βββ 6102 βββ 6104 βββ 6106 βββ 6110 βββ 6111 βββ 6112 βββ 6113 βββ 6116 βββ 6117 βββ 6175 βββ 6176 βββ 6228 βββ 6229 βββ 6237 βββ 6238 βββ 6239 βββ 826 βββ 827 βββ 828 βββ pg_filenode.map βββ pg_internal.init βββ PG_VERSION 0 directories, 299 files [postgres@lxceftsgvdb01 ~]$
Rajasekhar Amudala
Email: br8dba@gmail.com
Linkedin: https://www.linkedin.com/in/rajasekhar-amudala/