Find the byte size of a row in PostgreSQL

前端 未结 1 1547
深忆病人
深忆病人 2020-12-19 10:09

Assuming I have a table in PostgreSQL, how can I find the exact byte size used by the system in order to save a specific row of my table?

For example, assume I have

相关标签:
1条回答
  • 2020-12-19 11:10

    Use pg_column_size and octet_length.

    See:

    • How can pg_column_size be smaller than octet_length?
    • How can I find out how big a large TEXT field is in Postgres?
    • How can pg_column_size be smaller than octet_length?
    0 讨论(0)
提交回复
热议问题