Database (47) 썸네일형 리스트형 PGTune 을 이용하여 postgresql.conf 파라미터 설정하기 postgresql 구글링 중 postgresql 버전별로 postgresql.conf 권장 파라미터를 제공해 주는 사이트를 발견 https://pgtune.leopard.in.ua/ PGTune - calculate configuration for PostgreSQL based on the maximum performance for a given hardware configuration pgtune.leopard.in.ua Postgresql DB 버전, OS 유형, DB 유형, Memory, CPU 수, 최대 커넥션 수, 스토리지 유형을 선택하여 권장 파라미터 값을 확인할 수 있다. BareMetal 기준 - 웹어플리케이션 용도의 DB서버를 구성하는 기준으로 권장 파라미터 값을 확인해 보자. DB V.. Postgresql function 개발 및 예제 Postgresql pl/pgsql 을 이용하여 실제 프로젝트에서 쓰일 법한 function을 개발해 보자. ## 개발환경 Postgresql 9.4 pgAdmin 3 - 1.22.2 1. 사전준비 - CRUD를 수행할 테스트 테스트 테이블 생성 -- CRUD를 수행할 테스트 테이블 create table public.test_table( no integer not null primary key , title varchar(300) not null , create_date timestamp(0) not null , update_date timestamp(0) null ); -- 테스트 테이블 조회 select * from public.test_table; 2. INSERT Function 개발 테이블에 .. pgagroal 란? Postgresql 공식사이트에서 모니터링툴을 찾던 중 발견하게된 pgagroal www.postgresql.org/about/news/pgagroal-110-2144/ pgagroal 1.1.0 The [pgagroal](https://agroal.github.io/pgagroal/) community is happy to announce version [1.1.0](https://agroal.github.io/pgagroal/release/announcement/2021/01/05/pgagroal-1.1.0.html). __New features__ * Transaction pooling enhancements * Allow reload of www.postgresql.org ## 공식사이트 agro.. Postgresql 13 - pg_stat_statements 정의 및 기능정리 ## Postgresql 13의 공식문서를 참고로 정리 www.postgresql.org/docs/13/pgstatstatements.html F.29. pg_stat_statements F.29. pg_stat_statements F.29.1. The pg_stat_statements View F.29.2. Functions F.29.3. Configuration Parameters F.29.4. Sample Output F.29.5. Authors The pg_stat_statements module provides a … www.postgresql.org ## pg_stat_statements 정의 및 설명 * 실행되는 모든 SQL 문의 계획 및 실행 통계를 추적/저장하는 모듈 * pg_stat_s.. Postgresql 13 - pg_stat_statements 설치 및 사용방법 먼저 pg_stat_statements 에 대해서 알아보자. Postgresql 공식사이트 - www.postgresql.org/docs/13/pgstatstatements.html pg_stat_statements를 한문장으로 정리하면 실행되는 쿼리의 통계(빈도,실행시간,Row수등)를 확인할 수 있는 view 라고 할 수 있을 것이다. ## 설치환경 * CentOS 7.6 * Postgresql 13.1 1. Postgresql contrib 설치 pg_stat_statements 를 사용하려면 Postgresql contrib 가 설치되어 있어야 한다. su - root yum list *postgresql*contrib* yum -y install postgresql13-contrib.x86_64 .. Postgresql 13 - 운영환경 구성방법 Postgresql 운영할시에는 여러가지 고려사항을 인지하고 구성/설정이 되어있어야 한다. Postgresql에 국한되어 있지 않고 다른 RDBMS나 Application 을 구성할때에도 유용할 것이라고 생각한다. ## 운영시 예상상황 * Postgresql 서비스가 정상적으로 구동되고 있는지 확인하고 싶다. * DATA 용량이 너무 작아 OS영역의 파티션에서 용량이 큰 파티션으로 변경해야 한다. * Postgresql 로그를 빨리 확인거나 오래된 로그는 백업 또는 삭제하고 싶다. * 특정쿼리가 너무 오래 실행중이라 현재 실행중인 쿼리를 서버에서 확인하고 싶다. ## Postgresql 설치 포스팅 참고 2021/01/07 - [Database/Postgresql] - Postgresql 13을 Cent.. Postgresql 13을 CentOS 7.6에 RPM으로 설치하기 Postgresql 13을 CentOS 에 RPM 방식으로 설치해보자. Postgresql 13 버전 공식문서 www.postgresql.org/docs/13/ PostgreSQL 13.1 Documentation PostgreSQL 13.1 Documentation The PostgreSQL Global Development Group Copyright © 1996–2020 The PostgreSQL Global Development Group Legal Notice Table of … www.postgresql.org 한눈에 살펴보는 Postgresql d2.naver.com/helloworld/227936 0. OS설정 # 호스트명 postgres로 변경 hostnamectl set-hostname.. [Mariadb] db 및 user 생성 방법 Mariadb 를 이용할때 Super 권한자 User 인 root 를 사용하면 보안에 이슈가 생길 수 있다. 그래서 Application 개발시 Application 에 맞는 db, user 를 생성하고 권한을 부여하는 것으로 개발을 진행하면 된다. 현재 Nifi를 공부하고 있으니 데이터베이스 : nifi_db, User : nifi 를 만들어 보자. ## 환경정보 Mariadb 10.3.14 1. root 권한으로 접속한다. -u 옵션은 사용자를 지정, -p 옵션은 패스워드를 지정 mysql -uroot -pchangeme User 생성시 ERROR 1396 (HY000) 에러코드가 발생하면 이미 User가 존재하는 것이다. ERROR 1396 (HY000): Operation CREATE USER f.. 이전 1 2 3 4 5 6 다음