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 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 |
it ops db postgresql do

[PostgreSQL] Function3

이번 장은 for문과 loop를 이용하여 function을 사용하는 법을 익혀보려고 합니다. 우선은 천천히 감을 잡아가기 위해 나름대로의 난이도를 생각하여 쉬운 난이도부터 코드를 늘려가며 난이도를 높여보려고 합니다.for문과 loop 사용 연습 이에 대한 결과로 아래와
wono | discuss |
it ops db postgresql tsid

pg_random_id/lib/pg_random_id/sql/crockford-pure.sql at 0b4dc52c68b7b4aedca25e6a6cac848da7771d4a · arjunmenon/pg_random_id

Contribute to arjunmenon/pg_random_id development by creating an account on GitHub.
wono | discuss |
it ops db postgresql tsid

Build software better, together

GitHub is where people build software. More than 150 million people use GitHub to discover, fork, and contribute to over 420 million projects.
wono | discuss |
Next
© 2025. LINKTAG.ORG. Help Feedback Privacy Terms