PostgreSQL
-
PostgreSQL에서는 프로시저 언어로 파이썬을 지원 합니다. PL/Python을 사용하는 방법에 대해 테스트 해보겠습니다. PL/Python EXTENSION 생성 CREATE EXTENSION plpython3u; PL/Python을 사용하기 위해서는 EXTENSION을 통해 PL/Python 모듈을 사용할 수 있도록 합니다. PL/Python 테스트 코드 -- FUNCTION 생성 CREATE OR REPLACE FUNCTION your_function_name(arg1 integer, arg2 integer) RETURNS TABLE (column1 int, column2 int) AS $$ result = [] query = f"SELECT {arg1}, {arg2};" result.appen..
PostgreSQL 15 PL/Python 사용해보기PostgreSQL에서는 프로시저 언어로 파이썬을 지원 합니다. PL/Python을 사용하는 방법에 대해 테스트 해보겠습니다. PL/Python EXTENSION 생성 CREATE EXTENSION plpython3u; PL/Python을 사용하기 위해서는 EXTENSION을 통해 PL/Python 모듈을 사용할 수 있도록 합니다. PL/Python 테스트 코드 -- FUNCTION 생성 CREATE OR REPLACE FUNCTION your_function_name(arg1 integer, arg2 integer) RETURNS TABLE (column1 int, column2 int) AS $$ result = [] query = f"SELECT {arg1}, {arg2};" result.appen..
2023.07.20 -
DB-Engines Ranking Popularity ranking of database management systems. db-engines.com 데이터베이스 랭킹에서 상위 레벨에 속하는 PostgreSQL 데이터베이스를 설치 해보겠습니다. 설치 파일 다운로드 PostgreSQL: File Browser www.postgresql.org 소스 코드 방식으로 설치를 진행 합니다. 소스 코드 방식은 rpm, yum과 같은 방식 보다 자유도가 높습니다. GitHub - postgres/postgres: Mirror of the official PostgreSQL GIT repository. Note that this is just a *mirror* - we don't work Mirror of the ..
PostgreSQL 15 버전 설치 (소스 코드)DB-Engines Ranking Popularity ranking of database management systems. db-engines.com 데이터베이스 랭킹에서 상위 레벨에 속하는 PostgreSQL 데이터베이스를 설치 해보겠습니다. 설치 파일 다운로드 PostgreSQL: File Browser www.postgresql.org 소스 코드 방식으로 설치를 진행 합니다. 소스 코드 방식은 rpm, yum과 같은 방식 보다 자유도가 높습니다. GitHub - postgres/postgres: Mirror of the official PostgreSQL GIT repository. Note that this is just a *mirror* - we don't work Mirror of the ..
2023.07.20 -
docker hub에서 PostgreSQL 이미지를 통해 Container 배포를 해보겠습니다. docker hub postgres - Official Image | Docker Hub Note: the description for this image is longer than the Hub length limit of 25000, so has been trimmed. The full description can be found at https://github.com/docker-library/docs/tree/master/postgres/README.md. See docker/hub-beta-feedback#238 for more in hub.docker.com docker hub에서 postgres ..
docker container for PostgreSQL (PostgreSQL 설치)docker hub에서 PostgreSQL 이미지를 통해 Container 배포를 해보겠습니다. docker hub postgres - Official Image | Docker Hub Note: the description for this image is longer than the Hub length limit of 25000, so has been trimmed. The full description can be found at https://github.com/docker-library/docs/tree/master/postgres/README.md. See docker/hub-beta-feedback#238 for more in hub.docker.com docker hub에서 postgres ..
2022.10.21 -
국내외 알려진 RDBMS의 MVCC 방식 RDBMS별 MVCC 지원 정보 RDBMS 출시 버전 MVCC ORACLE 4 ↑ Rollback Segment TIBERO 3(추측) ↑ Rollback Segment IBM DB2 9.7 ↑ Rollback Segment MySQL 5 ↑ Rollback Segment (only Innodb) / MyISAM : MVCC X MariaDB 5 ↑ Rollback Segment (only Innodb) / MyISAM : MVCC X ALTIBASE 3.0 ↑ MGA(In-memory) / Rollback Segment (DISK) PostgreSQL 6.5 ↑ MGA SQL Server 2005 ↑ MGA CUBRID 10 ↑ MGA
MVCC 두 가지 방식: MGA와 Rollback Segment국내외 알려진 RDBMS의 MVCC 방식 RDBMS별 MVCC 지원 정보 RDBMS 출시 버전 MVCC ORACLE 4 ↑ Rollback Segment TIBERO 3(추측) ↑ Rollback Segment IBM DB2 9.7 ↑ Rollback Segment MySQL 5 ↑ Rollback Segment (only Innodb) / MyISAM : MVCC X MariaDB 5 ↑ Rollback Segment (only Innodb) / MyISAM : MVCC X ALTIBASE 3.0 ↑ MGA(In-memory) / Rollback Segment (DISK) PostgreSQL 6.5 ↑ MGA SQL Server 2005 ↑ MGA CUBRID 10 ↑ MGA
2022.10.14 -
PostgreSQL 데이터베이스의 버전 확인 SQL SQL> SELECT VERSION(); version | ---------------------------------------------------------------------------------------------------------------------------+ PostgreSQL 14.4 (Debian 14.4-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit| SQL> show server_version; server_version | ------------------------------+ 14.4 (Debia..
PostgreSQL 버전 확인PostgreSQL 데이터베이스의 버전 확인 SQL SQL> SELECT VERSION(); version | ---------------------------------------------------------------------------------------------------------------------------+ PostgreSQL 14.4 (Debian 14.4-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit| SQL> show server_version; server_version | ------------------------------+ 14.4 (Debia..
2022.10.10