---
title: "What To Know About Postgres if You’re Coming From SQL Server"
description: "Postgres and SQL Server share SQL but differ in dialect details that trip up migrating developers."
url: "https://swe.quest/articles/what-to-know-about-postgres-if-you-re-coming-from-sql-server-2dbf370eb4f4c29d"
canonical: "https://neon.com/blog/what-to-know-about-postgres-if-youre-coming-from-sql-server"
source: "Neon"
published: "2024-12-10"
difficulty: "medium"
kind: "How-to"
reading_minutes: 9
tags: ["postgres","sql","databases"]
---

# What To Know About Postgres if You’re Coming From SQL Server

A post on [Neon](https://swe.quest/sources/neon.md), published 2024-12-10, 9 min read, How-to. Original: [https://neon.com/blog/what-to-know-about-postgres-if-youre-coming-from-sql-server](https://neon.com/blog/what-to-know-about-postgres-if-youre-coming-from-sql-server)

## Summary

Postgres and SQL Server share SQL but differ in dialect details that trip up migrating developers. Identifiers are quoted with double quotes instead of square brackets. GETDATE/DATEADD/DATEDIFF become CURRENT\_TIMESTAMP, interval arithmetic and date subtraction, and TOP becomes LIMIT/OFFSET. Strings concatenate with || rather than +, CROSS APPLY becomes CROSS JOIN LATERAL, and string comparison is case-sensitive by default. Beyond syntax, Postgres is community-driven, so features like UUID generation or trigram search arrive as extensions, and tooling and hosting choices are open rather than vendor-defined.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [SQL](https://swe.quest/tags/sql.md) (Languages)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)

## Prerequisites

- SQL basics ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))
- T-SQL ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))

## Keywords

PostgreSQL, SQL Server, T-SQL, PL/pgSQL, Neon, pg\_trgm

## Related posts

- [The Dangers of Testing in SQLite as a Postgres User](https://swe.quest/articles/the-dangers-of-testing-in-sqlite-as-a-postgres-user-e7593810c6b7484d.md): Neon · 2025-02-17 · Medium · 9 min read · Testing, PostgreSQL, SQLite, SQL
  Testing against SQLite when production runs Postgres gives false confidence.
- [Postgres Language Server: Initial Release](https://swe.quest/articles/postgres-language-server-initial-release-4b7148c84b3bcff0.md): Supabase · 2025-03-29 · Medium · 13 min read · PostgreSQL, Developer tools, Rust, SQL, Static analysis
  Postgres Language Server is an LSP implementation for Postgres offering autocompletion, syntax error highlighting, type-checking via PREPARE/EXPLAIN against a live database, and a Squawk-inspired linter, available for VSCode, Neovim and as a CLI.
- [What's New in pg\_clickhouse v0.3.2: Postgres 19, TLS, Regex, and Memory](https://swe.quest/articles/what-s-new-in-pg-clickhouse-v0-3-2-postgres-19-tls-regex-and-memory-db831637f7730c4c.md): ClickHouse · 2026-06-23 · Medium · 2 min read · PostgreSQL, Analytics & OLAP, Databases
  pg\_clickhouse v0.3.2, the Postgres extension for querying ClickHouse, adds support for PostgreSQL 19 Beta1 and needs no restart or ALTER EXTENSION UPDATE.
- [Postgres Language Server: implementing the Parser](https://swe.quest/articles/postgres-language-server-implementing-the-parser-3a3e33745c9c0915.md): Supabase · 2023-12-08 · Hard · 14 min read · PostgreSQL, Compilers, Rust, Developer tools, SQL
  A Postgres language server's parser builds on libpg\_query rather than a custom grammar, and has to work around two gaps in it.
- [pg\_clickhouse & chdb updates: Encoding, nesting, and types](https://swe.quest/articles/pg-clickhouse-chdb-updates-encoding-nesting-and-types-54018d870fc3076b.md): ClickHouse · 2026-09-30 · Medium · 8 min read · PostgreSQL, Analytics & OLAP, Databases, SQL
  pg\_clickhouse v0.11.0 and the chdb extension v0.1.2 improve Postgres–ClickHouse type compatibility.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
