Spanner 데이터베이스를 만들 때 GoogleSQL 및 PostgreSQL이라는 두 가지 SQL 언어 중에서 선택할 수 있습니다. 두 언어 모두 동일한 핵심 Spanner 기능, 성능, 확장성을 제공합니다.
애플리케이션, 개발자, 작업 생태계의 요구사항에 따라 언어를 선택해야 합니다. 이 페이지에는 GoogleSQL 및 PostgreSQL 인터페이스 언어 데이터베이스 중 어느 것을 사용할지 결정할 때 고려하는 요소가 나와 있습니다.
주요 고려사항:
이식성: PostgreSQL을 선택하는 경우 Spanner에서 다른 PostgreSQL 데이터베이스로 마이그레이션할 수 있는 옵션이 있습니다.
기본 지식: 팀에서 이미 PostgreSQL 또는 GoogleSQL 구문과 도구에 대해 이미 잘 알고 있는 경우 해당 언어를 선택하면 개발을 간소화하고 학습 곡선을 줄일 수 있습니다.
생태계: 각 언어에 사용할 수 있는 도구와 라이브러리를 고려합니다.
GoogleSQL은 Google Cloud 서비스와 원활하게 통합되어 있는 반면 PostgreSQL은 광범위한 오픈소스 생태계를 보유하고 있습니다.
애플리케이션 요구사항: SQL 구문, 데이터 유형, 미래의 잠재적 니즈에 관한 애플리케이션의 특정 요구사항을 평가합니다.
마이그레이션: 기존 데이터베이스에서 마이그레이션하는 경우 현재 환경에 더 가까운 언어를 선택하면 마이그레이션 프로세스를 간소화할 수 있습니다.
이식성 우선순위가 가장 높고 Google Cloud에서 전환할 수 있는 옵션이 있으면 PostgreSQL을 선택합니다. Google Cloud 와 가장 긴밀하게 통합하려는 경우에는(예: BigQuery 사용) GoogleSQL을 선택합니다.
Spanner의 GoogleSQL 및 PostgreSQL 인터페이스 구현:
기능 패리티: GoogleSQL 및 PostgreSQL 언어 모두 인터리브 처리된 테이블 및 쿼리 힌트와 같은 Spanner의 고유한 기능을 동등하게 지원합니다.
기본 엔진: 두 언어 모두 동일한 기본 분산 스토리지 및 쿼리 처리 엔진을 공유하므로 일관된 성능, 확장성, 안정성을 보장합니다.
관리 및 개발: 동일한 Spanner 도구, API, 클라이언트 라이브러리를 사용하여 두 언어 모두의 애플리케이션을 관리하고 개발할 수 있습니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-09-09(UTC)"],[],[],null,["# Choosing the Right Dialect for Your Spanner Database\n\nWhen creating a Spanner database, you can choose between two SQL\ndialects: GoogleSQL and PostgreSQL. Both dialects offer\nthe same core Spanner features, performance, and scalability.\nRequirements of applications, developers, and the ecosystem in which you work\nshould inform your choice of dialect. This page lists the deciding factors\nbetween using GoogleSQL and PostgreSQL interface\ndialect databases.\n\n**Key Considerations:**\n\n- **Portability**: if you choose PostgreSQL, you have the option of migrating from Spanner to another PostgreSQL database.\n- **Familiarity:** if your team is already familiar with either PostgreSQL or GoogleSQL syntax and tools, choosing that dialect can streamline development and reduce the learning curve.\n- **Ecosystem:** consider the tools and libraries available for each dialect. GoogleSQL is well-integrated with Google Cloud services, while PostgreSQL has a vast open-source ecosystem.\n- **Application requirements:** assess your application's specific requirements regarding SQL syntax, data types, and potential future needs.\n- **Migration:** if you are migrating from an existing database, choosing the dialect closer to your current environment might simplify the migration process.\n\nIf portability is your highest priority, giving you the option to move away from Google Cloud, choose PostgreSQL. If you want the tightest\nintegration with Google Cloud (for example, to use BigQuery),\nthen choose GoogleSQL.\n\n**Spanner implementation of GoogleSQL and the\nPostgreSQL interface:**\n\n- **Feature parity:** Both GoogleSQL and PostgreSQL dialects provide equivalent support for Spanner's unique features, such as interleaved tables and query hints.\n- **Underlying engine:** Both dialects share the same underlying distributed storage and query processing engine, ensuring consistent performance, scalability, and reliability.\n- **Management and development:** You can manage and develop applications for both dialects using the same Spanner tools, APIs, and client libraries.\n\nWhat's next\n-----------\n\n- Learn about [dialect parity between GoogleSQL and\n PostgreSQL](/spanner/docs/reference/dialect-differences)."]]