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

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

2 / 20

2. Files are logically split into pages?

3 / 20

3. What is the purpose of the template0 database?

4 / 20

4. What is the purpose of the template1 database?

5 / 20

5. Postgres server spawns a new backend session for each connection?

6 / 20

6. To be able to restore data consistency, Postgres maintains

7 / 20

7. A schema can belong to more than one database?

8 / 20

8. If we create a new tablespace which directory will symbolic links be created from?

9 / 20

9. What is the process first launched at server start?

10 / 20

10. What is the default standard size for a fork file?

11 / 20

11. What is the name of the system catalog table for relations?

12 / 20

12. What is the point of the pg_global tablespace?

13 / 20

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

14 / 20

14. Who is the Author of the Postgres 14 Internals book?

15 / 20

15. Which of below are predefined schemas?

choose 2

16 / 20

16. Users should not modify the template0 database

17 / 20

17. What is the purpose of the public schema?

18 / 20

18. To understand each other, a client and a server must use one and the same interfacing protocol?

19 / 20

19. Some System Catalog tables are common to all databases in the cluster?

20 / 20

20. Which fork keeps track of available space within pages?

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

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

2 / 10

2. Which of the below would best describe a dirty read?

3 / 10

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

4 / 10

4. Based on Snapshot Isolation use of MVCC which of the below are permitted?

choose 3

5 / 10

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

6 / 10

6. Which of the below are valid Isolations Levels?

choose 2

7 / 10

7. non-repeatable read anomaly occurs when?

8 / 10

8. The more locks a transaction acquires, the better it is isolated from other transactions?

9 / 10

9. What is the default Isolation Level?

10 / 10

10. A phantom read anomaly occurs when?

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

1. Which 2 of the below represent transaction IDs used for row versioning?

2 / 10

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

3 / 10

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

4 / 10

4. Page free space can often become fragmented?

5 / 10

5. When a transaction is committed Postgres uses a special <replace with answer> structure?

6 / 10

6. Tuples can also be referred to as columns?

7 / 10

7. indexes do not use row versioning?

8 / 10

8. Which of the below are true about a Pages Item Pointer?

9 / 10

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

10 / 10

10. at any one time Postgres can have several versions of a row?

Your score is

0%