Category: Thread
-
2025/07/08 [Learn Postgres]
Postgres is equipped in three tools designated to handle logical backups: pg_dump, pg_dumpall and pg_restore. They offer rich customization for text and binary backups that can copy selected database objects. Dumping and restoring database can be performed by parallel workers to decrease operation time. The COPY and the native Postgres \copy commands allow integrating backup…
-
2025/07/07 [GADM-api]
I continue working on database initialization scripts. I’ve done good progress on setting up roles and privileges.
-
2025/07/07 [Learn Postgres]
Backup & Restoration – Postgres supports two types of backups – logical and physical. Logical backup copies table by table as if any client performing series of SELECT statements. It is a reliable and simple method that works across major versions. However it takes more time and puts additional cpu and memory strain on the…
-
2025/07/06 [GADM-api]
I started this day from researching postgres migration tools for golang. I decided to use goose package for the sake of it’s simplicity. I am also working on endpoint authorization. I am planing to create a table for access tokens with default UUIDv4 value and an index for fast retrieval. In the future I should…
-
2025/07/06 [Learn Postgres]
I completed the chapter about logging and auditing. Main takeaways are: – Postgres logs information about it’s actions. Quantity, frequency, destinaiton and content of these logs is highly configurable. – There are two types of logging: syslog for logging to third party systems. This method can drop logs under heavy traffic. logging collector it’s the…
-
2025/07/05 [GADM-api]
I separated concept of database connector from endpoint handler. I hope this will improve structure and readability. As a bonus I fixed broken next-url that wasn’t taking into account filter parameters.
-
2025/07/05 [Learn Postgres]
I finished the query tuning chapter. Toady I read about query optimization and auto explain . Main takeaways are:– Usually query optimization boils down to leveraging an appropriate index.– Avoid subqueries since they will likely cause redundant looping.– Keep an eye on unused indexes (pg_stat_user_indexes) since they take up space and effort when inserting new…
-
2025/07/04 [Learn Postgres]
I completed the section about indexes and started reading about EXPLAIN and ANALYZE statements. Several recent chapter were theory heavy and required a lot of note taking – this slowed down my progress. I will probably skip notes taking in next chapters – Audit Logging and Configuration … or at least restrain notes to crucial…
-
2025/07/04 [GADM-api]
I merged the filtering feature and added a mapping between filterable columns and url query parameters. I started thinking about integration tests. They might be quite involved to setup since they will require complex setting up process that includes seeding the data from GADM geopackage database.
-
2025/07/03 [GADM-api]
Today, I am celebrating today 30 days for waking up at 6am and working on self developement! I almost finalized the filtering functionality. It required some refactoring to be done. I hope to commit the changes tomorrow. After that I need to prioritize unit or integration tests. Also I want to progress my production environment.…