PGSQL2DLF.IN(1)
π 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 π
psql(1)postmaster(1)postgresql.conf(5)
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 π
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
- arch rolling: lire 2.1.1-8 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms