Skip to the workspace
Pebellslearn by building

PostgreSQL DBA / Installation & setup

CLI tools & setup

Prepare your workspace, run a small example and check the result before starting the course.

A terminal is where you type commands. A runtime or compiler runs your code; a package manager installs project dependencies. Follow the tools and command surfaces named in this course’s guide.

Already set up? Continue to Relational Databases →

BEFORE THE FIRST CODING TASK

Your computer, ready to learn.

PostgreSQL: a local server database

Use the PostgreSQL server workspace rather than assuming SQLite supplies PostgreSQL administration features. Create a new practice folder in your editor and open its integrated terminal there. Use a separate folder from personal or production projects. Install a stable supported PostgreSQL release and an appropriate SQL client such as pgAdmin using the official OS-specific guide. Create a new local practice database; use no existing application database. Keep its password out of workspace notes.

Already configured? Run the verification steps and continue. Use the command surface labelled beside each snippet, such as your terminal or SQL console.

Files to create

Save these files in the practice folder described above before running its file commands.

practice.sql
CREATE TABLE readings (id INTEGER PRIMARY KEY, title TEXT NOT NULL);
INSERT INTO readings (id, title) VALUES (1, 'First note'), (2, 'Second note');
SELECT COUNT(*) AS reading_count FROM readings;
  1. 1

    Start the local PostgreSQL server. Connect from your SQL client, create a fresh practice database and open its query editor. Run this SQL there.

    Windows · SQL query editor
    SELECT version();

    What you should see: The query returns the PostgreSQL version. Record the server version and chosen practice database name.

    Something didn’t work?

    A client installation alone does not prove the server is running. Check service startup, host, port, database and local credentials using the platform guide.

  2. 2

    Open practice.sql in the query editor for the fresh practice database and execute it once.

    Windows · SQL query editor
    SELECT COUNT(*) AS reading_count FROM readings;

    What you should see: After executing the file, the count query returns 2.

    Something didn’t work?

    If the table is missing, confirm the selected database/schema and whether the file actually executed. If it already exists, inspect prior data rather than resetting another exercise.

Check it yourself

Insert a third row with a unique ID and verify the new count. Explain the difference between your SQL client, server process and database. SQL Server/MySQL-specific examples still require their named engine.

This is a self-check; it does not mark a lesson or course complete.

Official setup guides & version requirements
My workspace notes

Notes stay in this browser. They are not uploaded or assessed.

Continue to Relational Databases →
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.