Skip to content

Commit

Permalink
Document POSTGRES_EXTRA_ANNOTATE_SQL
Browse files Browse the repository at this point in the history
  • Loading branch information
Photonios committed Jul 18, 2022
1 parent 77dad7e commit 4adc787
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/source/settings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,13 @@ Settings
.. note::

If set to ``False``, you must ensure that the ``hstore`` extension is enabled on your database manually. If not enabled, any ``hstore`` related functionality will not work.

.. _POSTGRES_EXTRA_ANNOTATE_SQL_:

* ``POSTGRES_EXTRA_ANNOTATE_SQL``

If set to ``True``, will append a comment to all SQL queries with the path and line number that the query was made from.

Format: ``/* <pid> <function name> <filename> <line number> */``

This can be useful when debugging queries found in PostgreSQL's ``pg_stat_activity`` or in its query log.

0 comments on commit 4adc787

Please sign in to comment.