본문 바로가기
반응형

저장소이야기/PostgreSQL3

[Postgresql] 서버 접속이 되지 않는 경우 cannot create temp file for here-document: No space left on device 장애상황 확인 postgresql 접속 시 아래와 같은 메시지가 나오면서 접속이 되지 않았습니다. psql: could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432? 갑작스러운 상황이라 서버를 내리고 다시 올렸지만 여전히 접속은 되지 않아서 확인해본 내용을 공유드립니다. 확인해본 사항 현재 상태 확인 sudo systemctl status postgresql active 상태인것을 확인할 수 있는데 접속이 되지 않습니다. ● postgresql.service - PostgreSQL RDBMS Loa.. 2021. 12. 20.
[PostgreSQL] 자동증가 방법 Postgresql 자동 증가 Sequence Serial GENERATED { ALWAYS | BY DEFAULT } AS IDENTITY Sequence 생성 CREATE SEQUENCE tn_user_id_seq; 테이블 생성 CREATE TABLE tn_user_seq ( id BIGINT NOT NULL DEFAULT NEXTVAL('tn_user_id_seq') PRIMARY KEY, name VARCHAR(255), created_date TIMESTAMP, modified_date TIMESTAMP ); Sequence 수정 ALTER SEQUENCE tn_user_id_seq OWNED BY tn_user_seq.id; 테스트 생성 INSERT INTO tn_user_seq (name, .. 2021. 7. 25.
[PostgreSQL] MacOS 설치 방법 MacOS PostgreSQL 설치 설치 진행 사전 준비 brew search postgresql (base) lsh@isanghoui-MacBookPro ~ % brew search postgresql ==> Formulae postgresql postgresql@10 postgresql@11 postgresql@12 postgresql@9.4 postgresql@9.5 postgresql@9.6 qt-postgresql ==> Casks navicat-for-postgresql 설치 brew install postgresql 설치 확인 postgres --version (base) lsh@isanghoui-MacBookPro ~ % postgres --version postgres (PostgreSQ.. 2021. 7. 25.
반응형