PGSQL2DLF.IN(1)

πŸ“¦ version 2.1.1, in arch rolling

πŸ’… pgsql2dlf β€” LogReport's Lire Documentation ✨

okay bestie, welcome to the pgsql2dlf page, part of the Lire docs (yes, that's the manual name, we're not copying the whole header line, we're better than that) πŸŽ€


✨ NAME ✨

pgsql2dlf β€” literally converts pgsql logfiles into dlf format, no cap πŸ¦‹


🌸 SYNOPSIS 🌸

pgsql2dlf

that's it. that's the whole synopsis. she takes no arguments, she's just vibing on stdin πŸ’…


πŸ’– DESCRIPTION πŸ’–

so pgsql2dlf converts a PostgreSQL query log file into DLF format. iconic behavior, fr fr.

you can find all the info on PostgreSQL at http://www.postgresql.org/ β€” go sip, iykyk πŸ“

in case you were wondering where the logging comes from: you enable it in the postgresql.conf file. that's the spot πŸ‘‘

and listen β€” for this converter to actually work well, these options should be present, at minimum:

debug_level = 1
debug_print_parse = on
debug_print_query = on

like, those three. don't skip them, bestie 😭

also, the generic database dlf format is described in database.xml β€” that's where the whole vibe is documented πŸ“–


🧚 EXAMPLES 🧚

to process a log as produced by PostgreSQL, you do this:

$ pgsql2dlf < /var/log/postgresql.log

and like, real talk β€” pgsql2dlf will be rarely used on its own. she's more of a behind-the-scenes main character. most of the time she's called by lr_log2report instead:

$ lr_log2report pgsql < /var/log/postgresql.log

see? teamwork. group chat energy. 🫢


πŸ”₯ NOTES πŸ”₯

heads up: the parser has been tested for log files from PostgreSQL 7.2.1. that's the version she knows. everything else is uncharted territory πŸ’€


🌈 SEE ALSO 🌈

go read those too, bestie, they're all part of the ecosystem πŸ’œ


⭐ VERSION ⭐

$Id: pgsql2dlf.in,v 1.12 2006/07/23 13:16:33 vanbaal Exp $

Copyright (C) 2002 Stichting LogReport Foundation LogReport@LogReport.org

This file is part of Lire.

Lire is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program (see COPYING); if not, check with http://www.gnu.org/copyleft/gpl.html.

πŸ’€ tiny note from me to you: that warranty disclaimer is doing a LOT of heavy lifting, so like β€” read it, don't skip it, it's the legal version of "no cap."

πŸ¦‹ AUTHOR πŸ¦‹

Wessel Dankers <wsl@logreport.org>


and that's the whole page, bestie!! πŸŽ€βœ¨ written up as Lire 2.1.1, dated 2025-09-28 β€” mwah, go convert some logs πŸ’–πŸŒΈ

πŸ“¦ where this page comes from