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. Postgres server spawns a new backend session for each connection?

2 / 20

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

3 / 20

3. The default Page size is 2k?

4 / 20

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

5 / 20

5. Postgres by default has built in connection pooling abilities?

6 / 20

6. Users should not modify the template0 database

7 / 20

7. What is the purpose of the template0 database?

8 / 20

8. Which of below are predefined schemas?

choose 2

9 / 20

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

10 / 20

10. A Postgres cluster consists of 2 or more physical servers accessing one Postgres Instance?

11 / 20

11. What is the purpose of the public schema?

12 / 20

12. Which of below are predefined schemas?

choose 3

13 / 20

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

14 / 20

14. Files are logically split into pages?

15 / 20

15. A single Postgres Instance can server only one database?

16 / 20

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

choose 2

17 / 20

17. What is the purpose of the visibility map?

18 / 20

18. What is the purpose of the template1 database?

19 / 20

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

20 / 20

20. pg_catalog schema is used to store system catalog tables?

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. At any moment the database system can contain several versions of one and the same row?

2 / 10

2. A phantom read anomaly occurs when?

3 / 10

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

4 / 10

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

5 / 10

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

6 / 10

6. non-repeatable read anomaly occurs when?

7 / 10

7. What is the acronym used for the attributes that ensure Data consistency, integrity and durability?

8 / 10

8. What are some of database features we can use to avoid a non repeatable read?

Select more than 1 answer below:

9 / 10

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

10 / 10

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

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. Each page has a layer that usually consists of?

choose 2

2 / 10

2. indexes do not use row versioning?

3 / 10

3. The page Special Space is located at the start of the page with highest address

4 / 10

4. status of a subtransaction is written into CLOG?

5 / 10

5. What does an Item Pointer contain?

choose 3

6 / 10

6. psql provides a special mode that allows you to continue a transaction after a failure?

7 / 10

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

8 / 10

8. In Postgres, tables are often referred to as which of the below?

9 / 10

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

10 / 10

10. CLOG contains how many bits for each transaction?

Your score is

0%