﻿---
title: PostgreSQL fields
description: PostgreSQL-specific event fields. 
url: https://docs-v3-preview.elastic.dev/elastic/beats/pull/49504/reference/packetbeat/exported-fields-pgsql
products:
  - Beats
  - Packetbeat
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available
---

# PostgreSQL fields
PostgreSQL-specific event fields.
<definitions>
  <definition term="pgsql.error_code">
    The PostgreSQL error code.
    type: long
  </definition>
  <definition term="pgsql.error_message">
    The PostgreSQL error message.
  </definition>
  <definition term="pgsql.error_severity">
    The PostgreSQL error severity.
  </definition>
  <definition term="pgsql.num_fields">
    If the SELECT query if successful, this field is set to the number of fields returned.
  </definition>
  <definition term="pgsql.num_rows">
    If the SELECT query if successful, this field is set to the number of rows returned.
  </definition>
</definitions>