Postgres Quiz Archive

You have 200 seconds to answer 20 Random questions so think fast!

You will need to score 80% or over to pass!


Created by Paul Sammy

PostgreSQL 14 Internals Chapter 1

A quiz to test the knowledge of those reading and learning from Postgres 14 Internals book by Egor Rogov, covering topics in Chapter 1.

1 / 20

How does Postgres know which schema to use if not specified?

2 / 20

TOAST tables reside in a seperate schema?

3 / 20

What is the purpose of the public schema?

4 / 20

Each Database has its own System Catalog?

5 / 20

Which fork is specific for unlogged tables?

6 / 20

System Catalog tables begin with which prefix?

7 / 20

What is the purpose of the template1 database?

8 / 20

What is the purpose of the template0 database?

9 / 20

What is the purpose of wal writer?

10 / 20

What is the purpose of autovacuum?

11 / 20

Postgres by default has built in connection pooling abilities?

12 / 20

How many rows in a page does Postgres aim to have before considering TOAST?

13 / 20

Which of below are predefined schemas?

choose 3

14 / 20

What 3 files/forks as a minimum make up a table on disk?

15 / 20

What is the purpose of the visibility map?

16 / 20

The pg_default tablespace should never be used to create user tables?

17 / 20

Users should not modify the template0 database

18 / 20

To be able to restore data consistency, Postgres maintains

19 / 20

Postgres server spawns a new backend session for each connection?

20 / 20

A schema can belong to more than one database?

Your score is

0%

Created by Paul Sammy

PostgreSQL 14 Internals Chapter 2

A quiz to test the knowledge of those reading and learning from Postgres 14 Internals book by Egor Rogov, covering topics in Chapter 2.

1 / 10

At any moment the database system can contain several versions of one and the same row?

2 / 10

The SQL standard specifies three isolation levels?

3 / 10

which of the below statements will start a transaction as Read Repeatable?

4 / 10

non-repeatable read anomaly occurs when?

5 / 10

What is the default Isolation Level?

6 / 10

A phantom read anomaly occurs when?

7 / 10

Data Consistency is best handled at the application layer rather than at the database layer?

8 / 10

Snapshot isolation is preferred but increases the number of required locks?

9 / 10

Which isolation level in theory could mean an application does not have to consider isolation anomalies?

10 / 10

Lost updates are forbidden by the standard at all isolation levels?

Your score is

0%

Created by Paul Sammy

PostgreSQL 14 Internals Chapter 3

A quiz to test the knowledge of those reading and learning from Postgres 14 Internals book by Egor Rogov, covering topics in Chapter 3.

1 / 10

When a row is created, its xmin value is set to the transaction ID of which command?

2 / 10

If a transaction is read only which kind of Transaction ID is it allocated?

3 / 10

A page along with its tuples is read into the buffer cache with compression transformations to enhance cache efficiency?

4 / 10

UPDATE can be regarded as which 2 separate operations?

5 / 10

Information about subtransactions is stored under?

6 / 10

a transaction containing a savepoint is will still be considered as only a single transaction?

7 / 10

CLOG Pages are never cached in memory?

8 / 10

index row headers like table row headers contain xmin and xmax fields?

9 / 10

What does an Item Pointer contain?

choose 3

10 / 10

virtual IDs exist only in PGDATA/pg_vxid when not cached?

Your score is

0%