I am unable to find database and tables, which I have created in PostgreSQL. Can anyone tell me where those are stored on the hard disk?
-
Im not sure why you want disc location. Your tables should be stored in files, that names will not tell you anything. They should be stored somewhere in %postgresInstallFolder%/data/ How you are creating those databases and tables? perhaps there is some error in logs?T.G– T.G2018-02-08 07:20:59 +00:00Commented Feb 8, 2018 at 7:20
Add a comment
|
2 Answers
You better don't go directly to the file system to investigate databases and tables as you may corrupt your database.
You can list all databases from the command line with the -l option
psql -l
To list all tables, you connect to the database, and execute the command (with -c) to describe tables \dt
psql your_database -c "\dt"