pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
how to find out field size?
2+ messages / 2 participants
[nested] [flat]

* how to find out field size?
@ 2022-04-04 15:28 Shaozhong SHI <shishaozhong@gmail.com>
  2022-04-04 15:37 ` Re: how to find out field size? Adrian Klaver <adrian.klaver@aklaver.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Shaozhong SHI @ 2022-04-04 15:28 UTC (permalink / raw)
  To: pgsql-general <pgsql-general@lists.postgresql.org>

Postgres documentation says:  maximum field size is 1 GB.
PostgreSQL: Documentation: 12: Appendix K. PostgreSQL Limits
<https://www.postgresql.org/docs/12/limits.html;

So, how to find out the size of column to see how far it from the limit?

Regards,

David

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: how to find out field size?
  2022-04-04 15:28 how to find out field size? Shaozhong SHI <shishaozhong@gmail.com>
@ 2022-04-04 15:37 ` Adrian Klaver <adrian.klaver@aklaver.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Adrian Klaver @ 2022-04-04 15:37 UTC (permalink / raw)
  To: Shaozhong SHI <shishaozhong@gmail.com>; pgsql-general <pgsql-general@lists.postgresql.org>

On 4/4/22 08:28, Shaozhong SHI wrote:
> Postgres documentation says:  maximum field size is 1 GB.
> PostgreSQL: Documentation: 12: Appendix K. PostgreSQL Limits 
> <https://www.postgresql.org/docs/12/limits.html;
> 
> So, how to find out the size of column to see how far it from the limit?

Documentation also shows:

https://www.postgresql.org/docs/current/functions-admin.html

pg_column_size ( "any" ) → integer

Shows the number of bytes used to store any individual data value. If 
applied directly to a table column value, this reflects any compression 
that was done.

> 
> Regards,
> 
> David
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2022-04-04 15:37 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-04-04 15:28 how to find out field size? Shaozhong SHI <shishaozhong@gmail.com>
2022-04-04 15:37 ` Adrian Klaver <adrian.klaver@aklaver.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox