Tagging
Try bookmarklet. Easy tagging.
Do you want to delete?
Do you want to modify?
  • LINKTAG
  • New
  • Tag
  • Comment
  • Tag, postgresql
Sign in

postgresql

it dev kysely postgresql

Convert the result type of the `count` function · Issue #610 · kysely-org/kysely

How can I convert a type with a library without using SQL expressions? const result1 = await db .selectFrom('users') .select(() => sql`COUNT("users".id)::integer`.as('count')) .execute(); const result2 = await db .selectFrom('users') .se...
wono | discuss |
it ops postgresql upgrade

[OpenSQL] PostgreSQL Version Upgrade - 티맥스티베로 공식 블로그

PostgresSQL Version 은 Major version과 Minor version으로 구성됩니다.
wono | discuss |
산업 it 오픈소스 postgresql

국내 포스트그레SQL 배포판 확산에 오픈소스 생태계 ‘경고등’

[아이티데일리] 포스트그레SQL은 오픈소스 데이터베이스(DB)를 대표한다. 국내에서도 다양한 기업들이 오픈소스 버전을 패키징해 자체 배포판으로 시장에 선보이고 있다. 국내 IT 환경에 적합하도록 최적화하거나, 상용 DBMS의 대안으로 제시되는 등 긍정적인 효과가 있다. 그러나 포스트그레SQL 배포판 생태계가 확대되면서 벤더 종속성 심화, 오픈소스 정신 훼손, 불투명한 라이선싱 및 고비용 문제, 커뮤니티 자생력 약화 등 오픈소스 생태계에 악영향을 줄 수도 있다는 우려가 나오고 있다.포스트그레SQL 배포판은 국내 기업들이 오픈소스로 공
wono | discuss |
it ops db postgresql collate

[TIL, 일일 회고] 2024.12.09 - PostgreSQL : 데이터베이스 생성 설정 파라미터 이해하기

프로젝트 회고 중 init.sql에 데이터베이스를 생성하는 쿼리문에 대해서 정리하고자 합니다. 데이터베이스 생성 시 사용된 각 설정의 의미와 중요성에 대해 자세히 알아보겠습니다. 데이터베이스 생성 쿼리 살펴보기CREATE DATABASE post WITH OWNER = postgres ENCODING = 'UTF8' LC_COLLATE = 'en_US.utf8' LC_CTYPE = 'en_US.utf8' TABLESPACE = pg_default CONNECTION LIMIT = -1; 1. 데이터베이스 이름과 소유자CREATE DATABASE post'post'라는 이름의 새 데이터베이스를 생성합니다.OWNER = postgres데이터베이스의 소유권을 postgres 사..
wono | discuss |
it ops db postgresql collate

Postgresql 한글 정렬

첨부할 사진이 준비되어 있지 않지만 아무튼 postgresql 을 아무 추가 설정 없이 이용했을 때 한글 정렬에 문제가 있다. 기본적으로 한글을 오름차순 정렬한다고 하면 ㄱ ~ ㅎ 으로 진행되는 것을 기대할 것인데 그렇게 작동하지 않는다. 1. 데이터 베이스 정렬은 Collate 컬럼에 의해 결정된다. -> postgres 접근해서 `\l` 명령어로 확인할 수 있음. 2. 데이터 베이스를 만들 때부터 LC_COLLATE 값을 C 로 설정해서 만들어야 함 -> 이미 만들었다면 dump한 이후 지우고 새로 만든 다음 dump 파일 추가해야 함 dump 하는 방법은 구글링하면 쉽게 찾을 수 있으므로 dump를 진행한 다음에 기존 데이터베이스를 지워주자. 그리고 다음과 같이 데이터베이스를 생성해준다. CREAT..
wono | discuss |
it ops db postgresql collate

[AWS]RDS postgresql 한글정렬 문제

rds에서 기본데이터베이스 생성시 collate option이 en_US로 되어 orderBy쿼리시 한글정렬이 원하는 대로 되지 않는다.따라서 다음의 과정이 필요하다.c(POSIX)옵션의 경우 아스키코드값으로 비교하는데 한글영어 혼합의 경우 정렬이 정상적으로 되지 않을
wono | discuss |
it ops db postgresql collate

도커 postresql 시간대, 언어 설정 방법들의 비교

도커 postgresql 의 다양한 환경설정 방법들을 실험하며 차이점을 살펴보겠습니다.
wono | discuss |
it ops db postgresql collate

한글과 LC_COLLATE

한국어 환경에서 PostgreSQL LC_COLLATE 설정
wono | discuss |
it ops db postgresql collate

PostgreSQL 15 한글 검색 설정

Postgresql 에서 한글 검색을 위한 encode, collate, ctype 설정 및 gin 인덱스 설정에 대해 알아보자.
wono | discuss |
it ops db postgresql utc

Using current time in UTC as default value in PostgreSQL

I have a column of the TIMESTAMP WITHOUT TIME ZONE type and would like to have that default to the current time in UTC. Getting the current time in UTC is easy: postgres=# select now() at time zon...
wono | discuss |
it ops db postgresql

PostgreSQL timestamp 사용 시 주의사항

SQL을 쓰면서 시간 관련해서 놓치기 쉬운 실수를 정리해보자.
wono | discuss |
it ops db postgresql to_char

PostgreSQL TO_CHAR Function By Practical Examples

This tutorial shows you how to use the PostgreSQL TO_CHAR() function to convert a timestamp or a numeric value to a string.
wono | discuss |
it ops db postgresql

PostgreSQL 사용 시 도움 되는 패턴들 | GeekNews

Postgres를 더 생산적이고 안전하게 사용하는 데 도움이 되는 실용적인 패턴들을 정리한 글각 패턴은 작지만 누적되면 큰 차이를 만들어냄UUID 기본 키 사용UUID는 무작위이기 때문에 정렬이나 인덱스 성능 면에서 단점이 있음숫자 ID보다 공간을 더 많이 차지함하지만 다음과 같은 장점이 있음DB에 연결하지 않고도 UUID를 생성할 수 있음외부에 안전하게
wono | discuss |
it ops dbeaver postgresql

How Can I sort the column names , I am using Postgres and Deaver Enterprise 7.3.0. · dbeaver · Discussion #10670

How Can I sort the column names , I am using Postgres and Deaver Enterprise 7.3.0.
wono | discuss |
it ops db postgresql merge

PostgreSQL 15にMERGE文UPSERTがやってくる | DevelopersIO

PostgreSQL 15がMERGE文を使ったUPSERTに対応します
wono | discuss |
it ops db postgresql merge

Postgresql 로 Upsert 하기

Postgres 9.5(2016년 1월 7일 이후 출시) 이후 가능한 문법입니다.존재하지 않는 경우 삽입, 존재하는 경우 Nothing존재하지 않는 경우 삽입, 존재하는 경우 Update삽입이 되었으면, id 반환삽입이 된 경우 삽입된 id값을 반환한다.Serial,
wono | discuss |
it ops db softdelete postgresql

Soft deletion with PostgreSQL: but with logic on the database!—Martian Chronicles, Evil Martians’ team blog

Rubyists might take special pleasure here, but every SQL and PostgreSQL dev can learn this unorthodox approach: putting soft delete logic on the database side.
wono | discuss |
it ops db postgresql unique index

PostgreSQL, unique index 컬럼에 null 삽입으로 인한 중복 생성 문제

null도 중복처리 될 줄 알았지 ..
wono | discuss |
it ops db postgresql varchar

Don't Do This - PostgreSQL wiki

wono | discuss |
it ops db postgresql

Should I add an arbitrary length limit to VARCHAR columns?

According to PostgreSQL's docs, there's no performance difference between VARCHAR, VARCHAR(n) and TEXT. Should I add an arbitrary length limit to a name or address column? Edit: Not a dupe of: W...
wono | discuss |
Next
© 2025. LINKTAG.ORG. Help Feedback Privacy Terms