Ges013 Postgresql
Ges013 Postgresql
Faculdade de Computação
2022/2
Sumário
1
https://www.postgresql.org
2
https://www.postgresql.org/docs/
GES013 Sistema BD 2022/2 3 / 22
Arquitetura cliente/servidor
Clientes conectam-se ao
postgres, principal
processo do servidor. Um
processo específico é
criado para servir um
Linux Conecta cliente
Cliente postgres
UNIX
Acessa
Banco de
ODBC
Mais informações
https:
//www.postgresql.org/docs/current/app-postgres.html
postgres
postgres – PostgreSQL database server
Synopsis
postgres [option...]
Description
postgres is the PostgreSQL database server. In order for a client application to
access a database it connects (over a network or locally) to a running postgres
instance. The postgres instance then starts a separate server process to handle
the connection.
One postgres instance always manages the data of exactly one database cluster.
A database cluster is a collection of databases that is stored at a common file
system location (the “data area”). More than one postgres instance can run on
a system at one time, so long as they use different data areas and different
communication ports.
(...)
No laboratório:
Host/Maquina: localhost
Username/Nome do usuário:
postgres
Password/Senha: root
Port/Porta: 5432 ou 5433
DB/BD: postgres
Em sua máquina:
Host/Maquina: localhost
Username/Nome do usuário:
postgres
Password/Senha: a definida
na instalação
Port/Porta: 5432
DB/BD: postgres
postgres é o BD
padrão,
mas é possível criar /
trabalhar com outros
Selecione um
esquema
(public ou outro)
Digite seus
comandos SQL
Esquemas
-- usando os esquemas
SET search_path TO universidade;
SET search_path TO farmacia;
SET search_path TO oficina;
Referências