PostgreSQL
تعلم PostgreSQL من الألف إلى الياء. أساسيات SQL، والربط بين الجداول، والفهارس، والمعاملات، وJSONB، وEXPLAIN، وتصميم قواعد البيانات.
14 درسًا، بالترتيب
- 120 دقيقة
ما هو PostgreSQL
Relational databaseACIDMVCCPostgres vs MySQL vs SQLiteWhere Postgres shines - 225 دقيقة
psql والأوامر الأولى
Psql command line clientConnecting as postgres userMeta commands like \l \c \dt \d \qSemicolons end statementsMultiline queriesSELECT version() - 330 دقيقة
إنشاء قواعد البيانات والجداول
CREATE DATABASECREATE TABLEPRIMARY KEYNOT NULLDEFAULTDROP TABLE+1 - 425 دقيقة
أنواع البيانات
Integer and bigintNumeric vs floatText and varcharBooleanTimestamptz vs timestampDate+3 - 530 دقيقة
SELECT و WHERE
SELECT specific columnsWHERE with AND ORBETWEENINLIKE and ILIKEIS NULL+2 - 635 دقيقة
Joins
INNER JOINLEFT JOINRIGHT JOINFULL OUTER JOINSelf joinUSING vs ON - 730 دقيقة
التجميعات والتقسيم إلى مجموعات
COUNTSUMAVGMINMAXGROUP BY+3 - 835 دقيقة
الفهارس (indexes)
B-tree defaultCREATE INDEXMulti-column indexPartial index WHERE activeUnique indexWrite cost+1 - 935 دقيقة
Transactions و Isolation
BEGIN COMMIT ROLLBACKSavepointsREAD COMMITTED defaultREPEATABLE READSERIALIZABLEDirty read non-repeatable read phantom read serialization anomaly - 1035 دقيقة
Functions و Triggers
CREATE FUNCTIONLANGUAGE plpgsqlRETURNSCREATE TRIGGERBEFORE UPDATENEW and OLD+1 - 1135 دقيقة
JSONB والمصفوفات
JSONB column-> operator->> operator@> contains operatorGIN index on jsonbText[] and integer[] arrays+2 - 1235 دقيقة
EXPLAIN وضبط الاستعلامات
EXPLAINEXPLAIN ANALYZESeq scan vs index scan vs index-only scanFixing a missing indexPg_stat_statements overview - 1325 دقيقة
النسخ الاحتياطي والاستعادة
Pg_dump custom formatPg_restorePlain SQL dumpsPoint-in-time recovery overview - 1460 دقيقة
الختام: تصميم مخطط قاعدة البيانات
Schema designPrimary and foreign keysIndexes on hot columnsUpdated_at triggerJSONB metadataJoins with aggregates+1
تعلّم PostgreSQL بلغتك
كل درس واختبار ورد من المدرس يظهر بلغتك. المدرس الذكي يرد بنفس اللغة التي تكتب بها.
Roles that use PostgreSQL
See how hiring teams interview engineers on PostgreSQL, in production-like environments.
Database Administrator (DBA)
Hire DBAs in real workspaces with PostgreSQL or MySQL, real replication lag, real slow queries and real backups to restore. Live or take-home.
See the interviewBackend Engineer (Go, Rust, Java)
Hire backend engineers in real services with real databases, real concurrency and real latency budgets. Live or take-home, fully recorded.
See the interviewData Engineer
Hire data engineers in workspaces with real Spark, dbt and Airflow pipelines. Schema drift, bad data and reruns included.
See the interview