Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I find tutorial files of Postgresql [closed]

I have installed postgresql on my ubuntu machine using,

apt-get install postgresql-9.1

Now I am reading the manual however could not figure out where the tutorial files (e.g., basics.sql) are.

Where can I find or download them?

like image 414
Sait Avatar asked Apr 17 '14 15:04

Sait


People also ask

Where is PostgreSQL data stored?

All the data needed for a database cluster is stored within the cluster's data directory, commonly referred to as PGDATA (after the name of the environment variable that can be used to define it). A common location for PGDATA is /var/lib/pgsql/data.

How do I check PostgreSQL history?

There's no history in the database itself, if you're using psql you can use "\s" to see your command history there. You can get future queries or other types of operations into the log files by setting log_statement in the postgresql. conf file.

Where are PostgreSQL databases stored Windows?

PostgreSQL for Windows installs the PGDATA directory by default into "C:\Program Files\PostgreSQL\some version\data".

How do I show all databases in PostgreSQL?

Use \l or \l+ in psql to show all databases in the current PostgreSQL server. Use the SELECT statement to query data from the pg_database to get all databases.


Video Answer


1 Answers

They're in the PostgreSQL source distribution:

https://github.com/postgres/postgres/tree/master/src/tutorial

Aside: the latest PostgreSQL is 9.3, not 9.1:

http://www.postgresql.org/docs/current/static/tutorial-sql-intro.html

like image 168
Denis de Bernardy Avatar answered Nov 15 '22 05:11

Denis de Bernardy