Postgresql log. *The parameter with ALTER SYSTEM SET is set to postgresql.

Contribute to the Help Center

Submit translations, corrections, and suggestions on GitHub, or reach out on our Community forums.

PostgreSQL logs are essential for troubleshooting and optimizing your database performance. Please note that only those queries that are executed can be logged. May 19, 2012 · However, the user's ddl and mod statements were logged; I expected only the ddl statement. Continuous Archiving in Standby. Improve this answer. This capability is widely referred to as warm standby or log shipping. conf file. Select the log type PostgreSQL Server Logs. Debugging deadlocks by logging on the database side. log [postgres@postgresql log]$ tail -f postgresql-Wed. Using Kerberos authentication with Amazon RDS for PostgreSQL. 1 server. Commands within psql start with a backslash \. postgresql. Nov 1, 2016 · logging_collector='on' log_filename='postgresql. document WHERE documentID is NULL AND StatusID = 1 ORDER BY PriorityID DESC, ModTime ASC FOR UPDATE LIMIT 1. But you can also check the PostgreSQL configuration files for the logfile settings. 6. PostgreSQL 11. pg_basebackup is used to take a base backup of a running PostgreSQL database cluster. Refer to Chapter 28 for more information. If PostgreSQL is installed correctly, this should take you directly into its interactive terminal. The blog series will cover all the topics Description. 以下是一些常用的查询日志记录参数:. -F Mar 9, 2020 · The log_min_messages setting is the volume control for Postgres’s system messages. Description. Installation. log_min_duration_statement = 0. conf settings will help to clean up those log files. This is the first step to creating an audit trail of PostgreSQL logs. 1 postgres postgres 322 11月 9 00:02 postgresql-Wed. Mathematical operators are provided for many PostgreSQL types. 5'. This lets you predict what the file name will be and know when an individual log file is complete and therefore ready to be imported. syslog_ident = 'postgres'. ( 24*7) on Call Support for PostgreSQL/Open Source databases. The table will be owned by the user issuing the command. 5. Save your setting. 0. postgres restart gets failed. According to the official documentation, it is “a powerful, open-source object-relational database system with over thirty years of active development that has earned it a strong reputation for reliability, feature robustness, and performance. 27. Also, you must use the Amazon RDS Console to view or download its contents. 如果您的参数为零,PostgreSQL 将给出一个错误:”无法取零的对数“。 如果您的参数为负数,PostgreSQL 将给出一个错误:”无法取负数的对数“。 如果您提供了一个不是数字类型的参数,PostgreSQL 将给出一个错误。 log() 示例. Start Logstash and Elasticsearch. This parameter can only be set in the postgresql. Otherwise it is created in the current schema. conf rather than postgresql. The server will listen for both normal and SSL connections on the same TCP port Nov 21, 2017 · With v12. 4 shows the mathematical operators that are available for the standard numeric types. This time, all the user's statements were logged, regardless of what the user's log_statement was set to. pgbadger --journalctl 'journalctl -u postgresql-9. 4. Để quản lý đơn giản hơn thường dữ liệu log được thiết lập để Sep 16, 2009 · 6. To configure a standby server to use pg_archivecleanup, put this into its postgresql. 2. It is a must-have tool for any postgresql developer really. Compare different approaches and tools for log file management, such as logging_collector, logrotate, syslog and pgBadger. It gets even simpler if you’re trying to connect as a user that matches your current system login. 在 Windows 环境下,我们可以通过编辑 PostgreSQL 数据库的配置文件 postgresql. I've enabled logging in my Postgres database (running on Ubuntu 32 bits) and I'd like to log only queries that a re performed by user applications. 配置查询日志记录参数. . Unless otherwise noted, operators shown as accepting Write-Ahead Logging (WAL) is a standard method for ensuring data integrity. conf 文件,找到 logging_collector 设置项,将其设置为 on,表示开启日志收集: logging_collector = on 然后找到 log_destination 设置项,将其设置为 stderr,表示将日志输出到标准错误流: log_destination = 'stderr' 接下来,找到 log_statement 设置项,根据需要设置日志 Aug 31, 2020 · log_connections これにより、クライアント認証の成功終了などのサーバへの接続試行がログに残ります。 log_disconnections セッションの終了をログします。 ログ出力の情報はlog_connectionsと同様で、更にセッションの経過時間が追加されます。 log_duration Jan 26, 2024 · postgres=#. 2 ). Within PostgreSQL logs are metrics about connection and disconnection, including long-running queries, authentication issues, deadlock or FATAL errors. Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers; Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand Nov 18, 2019 · PostgreSQL log file. The parameter log_filename specifies 30. g. Database performance monitoring in real time; Slow query analysis; Log analysis; Supports both system metrics and database 27. log' 6 7 log_rotation_age = 1 d 8 9 log_rotation_size = 0. The higher this value is set, the more debugging output is written to the server log. Select Add Diagnostic Setting. This section explains their use. When enabled, the data that is collected can be accessed via the pg_stat and pg_statio family of system views. PostgreSQL 10. Logging information you can configure and access includes errors, query information, autovacuum records, connections, and checkpoints. And here are your logs. 1 we have introduced new postgresql. If you have any errors you need to remove the empty install "data" directories and read all log files carefully. conf file or on the server command line. Tagged with postgres, pgbadger. file. The log files are typically named postgresql-<date>. In this code block, log_rotation_age = 1d specifies the maximum age of a log file before it's rotated. Unfortunately, upgrading to v12. Logs. There are several WAL -related configuration parameters that affect database performance. This the first thing I change after creating a new cluster, so that I get all the information I need and in the expected location. The goal of PostgreSQL Audit to provide the tools needed to produce audit logs required to pass certain government, financial, or ISO certification audits. In order to enable us to trace statements, we have to make sure that the process ID and transaction number are logged with each statement. This is relative to the PostgreSQL data directory. It is easy to use and provides a lot of information. Use Kibana to view the PostgreSQL logs in Elasticsearch. Error, warning, and log messages generated within the server code should be created using ereport, or its older cousin elog. Open the. Shared Disk Failover. Continuous archiving can be used to create a high availability (HA) cluster configuration with one or more standby servers ready to take over operations if the primary server fails. 2 days ago · PostgreSQL is a powerful, open source object-relational database system with over 35 years of active development that has earned it a strong reputation for reliability, feature robustness, and performance. The goal of the pgAudit is to provide PostgreSQL users with capability to produce audit logs often required to comply with government, financial, or ISO certifications. You have two options: Option 1: You can manually change the postgresql. 520 EST [5213] LOG: checkpoint complete: wrote 24 buffers (0. Select your preferred endpoint (storage account, event hub, log analytics). 这里有几个 log() 函数的示例。 PostgreSQL supports several methods for logging server messages, including stderr, csvlog and syslog. You can customize the logging behavior for your RDS for PostgreSQL DB instance by modifying various parameters. To do that, you have to config the PostgreSQL configuration file postgresql. Learn how to set up and customize your logging parameters, record queries, and analyze your logs with Loggly, a powerful and easy-to-use log monitoring tool. log Oct 6, 2009 · There's no history in the database itself, if you're using psql you can use "\s" to see your command history there. The backup is taken without affecting other clients of the database, and can be used both for point-in-time recovery (see Section 26. 3) and as the starting point for a log-shipping or streaming-replication standby server (see Section 27. PostgreSQL provides a few parameters when choosing the naming convention and rotation policy of the log file. Oct 25, 2018 · In this post, we are going to discuss how to log all executed queries for inspection later in PostgreSQL. See this table in the PostgreSQL docs for an explanation of what each severity means. The data directory is specified by the data_directory parameter in the configuration file. 1. PostgreSQL 12. To start gathering your PostgreSQL metrics and logs, install the Agent. 1 postgres postgres 703 11月 9 00:37 postgresql-Wed. conf configuration file: archive_cleanup_command = 'pg_archivecleanup archivelocation %r'. Checkpoints are points in the sequence of transactions at which it is guaranteed that the heap and index Aug 17, 2015 · 9. The default is to log to stderr only. Consult Chapter 20 for general information about setting server configuration parameters. log' And also the following, from the documentation: Set log_filename and log_rotation_age to provide a consistent, predictable naming scheme for your log files. To test our first command, we can check what database, user, and port we’ve connected to using the \conninfo command: postgres=# \conninfo. In my case, below, it’s an absolute path, but by default it’s the relative path “pg_log”. 4, which makes it a good choice for the driver since it doesn’t add any external dependency for a Jun 30, 2023 · Write Ahead Logging (WAL) is a pivotal component of PostgreSQL. 1%); 0 WAL file(s Mar 29, 2012 · I have found the answer regarding numbers on Postgresql. First, you have to enable logging all queries in PostgreSQL. Learn how to save, rotate and analyze the database server's log output for troubleshooting and performance monitoring. Unless debugging a database application, this parameter is best to keep to “default”. This configuration file is typically located in the PostgreSQL data directory. The definition of the function is available on GitHub. conf as shown below: 修改 postgresql. mytable ) then the table is created in the specified schema. 1/ is clear Oct 17, 2022 · CREATE ROLE myuser LOGIN PASSWORD 'mypass'; CREATE DATABASE mydatabase WITH OWNER = myuser; Then you can login, $ psql -h localhost -d mydatabase -U myuser -p <port>. The principle of WAL is straightforward yet profound: every action that modifies the database content is recorded into a log before it’s applied to the database. find / -name pg_log founds nothing standard log at /etc/postgres/main/9. On Windows, eventlog is also supported. 19. Sep 22, 2023 · Open up your terminal and type psql. Configuration. Reporting Errors Within the Server #. or worst, call it from a remote host: pgbadger -r 192. This parameter controls the amount of information PostgreSQL will record for each event recorded in the log file. Using a custom DNS server for outbound network access. Feb 20, 2018 · Resolution. For an Aurora PostgreSQL DB cluster, the log file is available on the Aurora cluster. PostgreSQL 14. Values are from 1 to 5. It uses the native PostgreSQL logging facility, so the audit logs will be part of the PostgreSQL logs. For types without standard mathematical conventions (e. Loggly can help you visualize and alert on your PostgreSQL logs, as well as logs from other sources, in a unified dashboard. IOW, same results as before. There is a wealth of information to be found describing how to install and use PostgreSQL through the official documentation . Configuring Write-Ahead Logging: PostgreSQL Apr 26, 2018 · PostgreSQL có thể thiết kế để xuất log tới syslog (linux) hay event log (windows), mặc định PostgreSQL xuất log bên dưới pg_log bên dưới thư mục cơ sở dữ liệu (nếu tham số logging_collector thiết lập là on). Jun 10, 2021 · Verify that the logging collector is started: SHOW logging_collector; If not, the location of the log depends on how PostgreSQL was started. ” Jul 9, 2018 · The PostgreSQL log analyzer “ pgBadger ” is an open source “fast PostgreSQL log analysis report” program written in Perl that takes the log output from a running PostgreSQL instance and processes it into an HTML file. See Section 17. This action-first, record-later methodology improves the durability and consistency of the database by providing an Parameters that affect logging behavior. I want to log all error returned from postgresql. data\pg_log folder If yours are not showing the sql that you require you probably have to turn on logging in your postgresql. log The PostgreSQL Audit Extension (or pgaudit) provides detailed session and/or object audit logging via the standard logging facility provided by PostgreSQL. sudo dnf install postgresql-server postgresql-contrib. In Kibana, go to the “Discover” tab and select the “postgresql” index pattern. Share. 11'; ALTER SYSTEM. conf. I've configured postgres as follows: log_destination = 'syslog'. The PostgreSQL Audit Extension (pgAudit) provides detailed session and/or object audit logging via the standard PostgreSQL logging facility. Jan 9, 2024 · By default, PostgreSQL logs are stored in the pg_log subdirectory of the data directory. Where and what postgresql actual logs can vary between platforms, installers and can also be changed by the user. You can get future queries or other types of operations into the log files by setting log_statement in the postgresql. The alter system command has modified the postgresql. Sep 6, 2016 · In this system, logging_collector is turned on, which means we have to find out where it’s collecting logs. syslog_facility = 'L*emphasized text*OCAL0'. Here’s the syntax of the LOG() function that calculates the base-10 logarithm of a number: Jun 21, 2012 · Where I can find startup log of of my postgres 9. The use of this function is complex enough to require some explanation. The logs can be used to identify, troubleshoot, and repair configuration errors and suboptimal performance. These parameters control the server-wide cumulative statistics system. It is a must-have tool for postgresql log analysis. log_destination ( string) PostgreSQL supports several methods for logging server messages, including stderr, csvlog and syslog. The PostgreSQL check is packaged with the Agent. I am command line addict, so I prefer “console” way. 9. 346 EST [5213] LOG: checkpoint starting: time 2022-11-09 00:02:43. postgres=# alter system set listen_addresses TO 'localhost,192. My logs are in . PostgreSQL 16. In Timescale Cloud, it’s as easy as navigating to the Logs tab within your service. Dont you agree? Dec 9, 2022 · OWNER to "TestUser"; . Name this setting. log_line_prefix = '%m [pid=%p] %q [txid=%x] %u PostgreSQL supports several methods for logging server messages, including stderr, csvlog and syslog. But,logging file is display empty. Jul 5, 2017 · In postgresql am change following settings for postgresql. Just type psql followed by -U, then username, like psql -U my_username. Mar 28, 2023 · To enable resource logs using the Azure portal: In the portal, go to Diagnostic Settings in the navigation menu of your Postgres server. PostgreSQL 15. Comparison of Different Solutions #. This means that a new log file is created to continue 56. postgres => CREATE EXTENSION log_fdw; CREATE EXTENSION. Same results setting user's log_statement to none and all. Once you have selected the Timescale service you want to inspect the logs, click the Logs tab for the service. It uses a single disk array that is shared by multiple servers. Dec 19, 2022 · The installation and initialization of the postgresql server is a little bit different in comparison to other packages and other Linux distros. 2016-02-29 16:56:14 CET [2139-9001] postgres@uat LOG: duration: 48. 2. Jan 19, 2022 · Introduction. WAL Configuration #. log The PostgreSQL® JDBC Driver supports the use of logging (or tracing) to help resolve issues with the pgJDBC Driver when is used in your application. Jan 2, 2024 · Effective PostgreSQL security requires a strategy encompassing (1) Network, (2) Network Node, (3) Data, (4) Database, (5) Users, and (6) Application. [postgres@postgresql log]$ ll 合計 4 -rw-----. Table 9. The default logging level captures login failures, fatal server errors, deadlocks Feb 20, 2019 · This project will analyze the PostgreSQL transaction log to give index recommendation to the database that will be tested. 1. Uncomment this line by removing the. Pros. SSL is used interchangeably with TLS in PostgreSQL. auto. If you don't know the port, you can always get it by running the following, as the postgres user, SHOW port; Azure Database for PostgreSQL flexible server allows you to configure and access Postgres' standard logs. After installing PostgreSQL (server and client tools) one needs to run the following commands as ROOT ("su"). Postgres can also output logs to any log destination in CSV by modifying the configuration file -- use the directives log_destination = 'csvfile' and logging_collector = 'on', and set the pg_log directory accordingly in the Postgres config file. You are connected to database "postgres" as user "your_username" via socket in "/tmp" at port "5432". Synchronous Replication. We would like to show you a description here but the site won’t allow us. PostgreSQL is one of the most popular SQL databases today. If the main database server fails, the standby server is able to mount and start the database as though it were recovering Sep 3, 2020 · The “log_error_verbosity” parameter can have three possible values: log_error_verbosity = terse | standard | verbose. Some examples of logs generated due to this parameter: CREATE TABLE will create a new, initially empty table in the current database. Configure the service to listen on the public IP address: Note: As a best practice use alter system rather than editing postgresql. They contain execution statistics for the query. 2 for details. Feb 1, 2017 · The default PostgreSQL logs are so hard to handle, i am considering to change the log_format. Keeping an eye on PostgreSQL logs helps you identify errors, warnings, and informational messages, which are vital for troubleshooting and auditing database activity. , date/time types) we describe the actual behavior in subsequent sections. Working with PostgreSQL features supported by Amazon RDS for PostgreSQL. PostgreSQL 9. log. The default means you’ll see logs with severity WARNING or higher (ERROR, LOG, FATAL, PANIC). Executing the following query can point you in the right direction SHOW log_directory; – Sets the debug level. 20. #log_min_duration_statement = -1 # -1 is disabled, 0 logs all statements. Dec 10, 2019 · # These are relevant when logging to syslog: #syslog_facility = 'LOCAL0' #syslog_ident = 'postgres' #syslog_sequence_numbers = on #syslog_split_messages = on # This is only relevant when logging to eventlog (win32): # (change requires restart) #event_source = 'PostgreSQL' # - When to Log - #log_min_messages = debug5 # values in order of Syslog is the de-facto logging standard on Unix systems. Use pgbadger, a must have tool, for postgresql log analysis with ease and get a detailed report. Jul 17, 2018 · 0. log 2022-11-09 00:02:41. Basic Setup #. Use pgbadger for postgresql log analysis with ease and get a detailed report. 190 ms. First, check log_directory. If a schema name is given (for example, CREATE TABLE myschema. Briefly, WAL's central concept is that changes to data files (where tables and indexes reside) must be written only after those changes have been logged, that is, after WAL records describing the changes have been flushed to Below is the complete archive of release notes for every version of PostgreSQL. There are a couple of pre-defined facilities, like kernel, mail or security, but none for PostgreSQL or databases. Test 2: log_statement = 'all' #in postgresql. log -rw-----. Jun 21, 2012 · 1. Connecting to a DB instance running the PostgreSQL database engine. ***** For an on-premises PostgreSQL DB instance, these messages are stored locally in log/postgresql. org Form. Query 1 These lines are emitted if you set log_statement_stats to "on". Every syslog message has a facility (type of system) and a severity. My idea was to explicitly "print" or "log" the progress as a call from inside the transaction as the number of completed queries over the total queries number, and then parsing the log from an asynchronous application (remember that a transaction locks tables and other stuff, except from some Sep 3, 2020 · The “log_error_verbosity” parameter can have three possible values: log_error_verbosity = terse | standard | verbose. The log files store the engine logs that the RDS and Aurora PostgreSQL instances generate. When used within archive_cleanup_command, all WAL files logically preceding the Jun 4, 2023 · In the event of a crash or failure, PostgreSQL can replay the log files from the last checkpoint to restore the database to a consistent state. Set this parameter to a list of desired log destinations separated by commas. What you probably want instead is log_min_duration_statement, which if you set it to 0 will log all Oct 30, 2023 · To enable query logging in PostgreSQL, you need to configure the. This document aims to summarize basic installation steps relevant to recent Fedora Linux releases. 8. These parameters provide the ability to generate periodic or fixed max size log files. But, I found it's hard to find the PostgreSQL log file. track_activities (boolean) #. -D datadir. PostgreSQL supports several methods for logging server messages, including stderr, csvlog and syslog. The report it generates shows all information found in a nice and easy to read report format. I'm using Ubuntu. 168. pg_restore is a utility for restoring a PostgreSQL database from an archive created by pg_dump in one of the non-plain-text formats. Nov 19, 2009 · I assume the logs are placed in /var/log/postgresql. util. The new postgresql. Cumulative Query and Index Statistics #. You need to restart Postgresql if you change logging. For example, while the default PostgreSQL logging configuration identifies the date and time that a change was made in a database table, with the pgAudit extension the log entry can include the schema, user who made the change, and other details depending on how the extension parameters are configured. conf parameter for our Set-VBRPSQLDatabaseServerLimit cmdlet. Note: To install Database Monitoring for PostgreSQL, select your hosting solution in the Database Monitoring documentation for instructions. Jul 2, 2023 · Conclusion. PostgreSQL offers two LOG() functions: Base-10 logarithm: The base-10 logarithm is the most commonly used logarithm in science and engineering applications. Where you find logs and what will be inside those depends on how you've configured your PostgreSQL cluster. Mar 2, 2022 · Connect to the database using psql and run the following command. 1 will not update those settings automatically. If yes, the log will be in log_directory: SHOW log_directory; If that is a relative path, it is relative to the PostgreSQL data directory. Shared disk failover avoids synchronization overhead by having only one copy of the database. With SSL support compiled in, the PostgreSQL server can be started with support for encrypted connections using TLS protocols enabled by setting the parameter ssl to on in postgresql. This research will develop an index recommender tool by analyzing the attribute that is frequently accessed (using SELECT statement). . I think they need to create a directive that forces multi lines queries to go to a single line. View Logs using pg_log Directory: You can navigate to the pg_log directory and view the log files directly. Securing connections to RDS for PostgreSQL with SSL/TLS. With CSV logging, that is always the case, but with stderr logging, you have to change log_line_prefix: 1. logging that is part of Java since JDK 1. Jul 8, 2021 · One cool feature Sematext offers is a built-in Sematext PostgreSQL Log integration, which allows you to identify slow queries, errors, and warnings, giving you deeper insights when doing root-cause analysis. Specifies the file system location of the data directory or configuration file(s). conf: ALTER SYSTEM SET log_statement = 'all'; Or: ALTER SYSTEM SET log_min_duration_statement = 0; Then, all queries including transaction Jul 8, 2023 · pgBadger is a great tool to analyze postgresql query logs. Feb 29, 2016 · Another example: 2016-02-29 16:56:14 CET [2145-1225] postgres@uat LOG: execute <unnamed>: SELECT ID FROM public. Aug 4, 2012 · @NishantKumar, the path in the answer was based on homebrew on macos. Dec 30, 2022 · This configuration file tells Logstash to read the PostgreSQL log file, parse the log messages using the grok filter, and send the resulting data to Elasticsearch. pgBadger is a great tool to analyze postgresql query logs. It is a must-have tool for any postgresql developer. 当一个日志文件的存活时间达到这个限制时,PostgreSQL 会创建一个新的日志文件,并将旧文件进行归档。 要设置 log_rotation_age 参数的值,可以按照以下步骤进行操作: 打开 PostgreSQL 的配置文件 postgresql. It will issue the commands necessary to reconstruct the database to the state it was in at the time it was saved. Oct 20, 2023 · 1 # Specify secure log location and rotation settings 2 3 log_directory = '/var/log/postgresql/' 4 5 log_filename = 'postgresql. The key step is to start "service postgresql initdb" and let it initialize your PostgreSQL database. where archivelocation is the directory from which WAL segment files should be removed. In PostgreSQL, the LOG() function allows you to calculate the logarithm of a number. If your Aurora PostgreSQL DB cluster is configured to log data manipulation language (DML) statements as detailed in Turning on query logging for your Aurora PostgreSQL DB cluster, you can avoid the cleartext password issue by using the PostgreSQL Audit Check your PostgreSQL logs to see the auditing information recorded by pgaudit. Enables the collection of information on 在 PostgreSQL中,我们可以通过设置日志记录器参数来启用和配置查询日志记录。. The "user" and "sys" times are acquired by the getrusage (2) or times (2) system call, depending on your operating system (on Windows, GetProcessTimes is used Jul 11, 2019 · To do that, you need to run either of the queries below then restart PostgreSQL to enable logging persistently. 159 --journalctl 'journalctl -u postgresql-9. CREATE ROLE foo; -- a non-superuser GRANT pg_monitor TO foo; -- do this only when list_postgres_log_files() is used because the underlying function pg_ls_logdir() needs it GRANT CREATE ON SCHEMA bar TO foo; -- to create foreign tables in schema named bar GRANT USAGE ON FOREIGN SERVER log_fdw_server TO foo; -- to use log_fdw foreign server SET ROLE foo; SELECT * FROM create_foreign_table_for Mar 5, 2024 · e. For purposes of this the pgaudit Jul 16, 2015 · I'm simply looking for a method to inspect the real progress of a given transaction in PostgreSQL. file in a text editor and find the following line: #log_statement = 'none'. *The parameter with ALTER SYSTEM SET is set to postgresql. With the extension loaded, we can create a function that loads all the available PostgreSQL DB log files as a table within the database. In the following table you can find the parameters that affect how long the logs are stored, when to rotate the log, and whether to output the log as a CSV (comma-separated value) format. A detailed description can be found in most (if not all) books about transaction processing. A syslog daemon receives messages from processes and processes them according to its configuration. The archive files also allow pg_restore to be selective about what is restored, or The PostgreSQL Audit Extension, pgAudit, is an open source extension that logs the events in a PostgreSQL database in a detailed audit log. PostgreSQL 13. conf; 搜索 log_rotation_age; 将参数的值设置为所需的时间间隔。 The pgAudit extension redacts sensitive data such as cleartext passwords from the logs. you don't need to specify any log file at command line, but if you have other PostgreSQL log files to parse, you can add them as usual. Log files are named according to a pattern in log_filename. Ensuring PostgreSQL database hardening means securing each of these areas comprehensively to maintain the integrity and security of the entire system. conf来配置查询日志记录参数。. The pgJDBC Driver uses the logging APIs of java. wo jm yk bs ix fi dw wl bo ny