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. The pg_default tablespace should never be used to create user tables?

2 / 20

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

3 / 20

3. Which of the below objects can be referred to as relations?

choose 3

4 / 20

4. Tablespaces can be used to segregate data based on performance needs?

5 / 20

5. Postgres uses a thread based process model?

6 / 20

6. What is the purpose of the visibility map?

7 / 20

7. What is the name of the directory that contains the files related to the Postgres cluster?

8 / 20

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

9 / 20

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

10 / 20

10. What is the purpose of wal writer?

11 / 20

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

12 / 20

12. What is a schema?

13 / 20

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

14 / 20

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

15 / 20

15. Users should not modify the template0 database

16 / 20

16. Each tablespaces can only be assigned for use by one database

17 / 20

17. What is the name of the 2 default tablespaces created after initialization?

choose 2

18 / 20

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

19 / 20

19. Tablespaces are used to define physical data layout?

20 / 20

20. Which of below are predefined schemas?

choose 2

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. Based on Snapshot Isolation use of MVCC which of the below are permitted?

choose 3

2 / 10

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

3 / 10

3. Which of the below are valid Isolations Levels?

choose 2

4 / 10

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

5 / 10

5. Which parameters sets the database default isolation level?

6 / 10

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

7 / 10

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

8 / 10

8. non-repeatable read anomaly occurs when?

9 / 10

9. A phantom read anomaly occurs when?

10 / 10

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

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 function can we use to find the current transaction ID?

2 / 10

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

3 / 10

3. The page header stores checksum and the sizes of the other parts of the page?

4 / 10

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

5 / 10

5. Page free space can often become fragmented?

6 / 10

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

7 / 10

7. CLOG contains how many bits for each transaction?

8 / 10

8. indexes do not use row versioning?

9 / 10

9. Indexes values also support multi versioning with several versions of an index value existing at any point in time?

10 / 10

10. status of a subtransaction is written into CLOG?

Your score is

0%