FB_LOCK_PRINT(1)
π FB_LOCK_PRINT β bestie edition β¨
okay so you're here because something in your Firebird database is being messy with locks and you need the tea. fb_lock_print is a section-1 (user command) manual page from the Firebird documentation set, and it's literally your lock forensics bestie. π΅οΈβοΈπ¦
πΈ NAME πΈ
fb_lock_print β all the info about Firebird database locks, no cap π
β¨ SYNOPSIS β¨
fb_lock_print -d database [option...]
fb_lock_print -f lockfile [option...]
two ways in, bestie: point it at a database, or point it at a lockfile. pick your fighter. π
π DESCRIPTION π
so fb_lock_print is the tool that displays the information from the Firebird lock system. that's it, that's the vibe. and likeβ¦ it's genuinely useful when you're debugging lock contention / conflict / performance problems, because you can literally see who's holding what and why nobody's moving. it's giving main character energy in your debugging session. π₯
π OPTIONS π
-ddatabase β print lock information about the specified database. ποΈ-flockfile β print lock information from the specified lockfile. and heads up bestie, Firebird lock files live in/tmp/firebird. π-o|-pβ print info about lock owner blocks. this one is on by default, so it's already doing the thing unless you say otherwise. β¨-cβ consistency mode. blocks the lock manager so that no changes to the lock blocks can be made while the information is gathered. lowkey invasive but that's the point π-lβ print info about lock blocks. π-rβ print info about lock request blocks. πβοΈ-hβ print info about lock history. π-aβ print info about owner blocks, lock blocks, request blocks and history. same as"-o -l -r -h". the whole combo meal π-snum β print info about lock series num. π’-i[filter]interval count β enter interactive mode and continuously display lock counters per second. so you justβ¦ watch the numbers go π- possible filters are:
aβ lock acquiresoβ lock operations: enqueues, conversions, downgrades, dequeues, reads, writes and queriestβ lock operations by type.wβ lock waits
- if no filter is given, all activity is shown. (the
[filter]being in brackets is a lil hint that it's optional, iykyk π«Ά) - interval is the interval in seconds between displays. count instructs
fb_lock_printto exit after that many displays β so it's not an infinite loop situation, it'll actually let you go. π
- possible filters are:
-wβ print a recursive list of locks each lock waits for. the dependency tree of doom, iconic π-mβ HTML output. yes queen, format it π
π AUTHOR & COPYRIGHT π
Copyright (C) Damyan Ivanov, 2009.
this manpage was written by Damyan Ivanov for the Debian project but may be used by others. permission is granted to use this document, with or without modifications, provided that this notice is retained. and β direct quote vibes β if we meet some day, and you think this stuff is worth it, you can buy me a beer in return. πΊ (an absolute legend, fr fr)
reminder bestie: this manpage is part of the Firebird 4.0 documentation, dated 2026-06-28, and it's filed under FB_LOCK_PRINT(1).
okay that's the whole page, go forth and debug your locks, you've got this πβ¨π¦
π¦ where this page comes from
- ubuntu stonking: firebird4.0-utils 4.0.7.3271.ds6-1build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms