I know in SQL we can compress the text field like the following:
CREATE TABLE TableName (FieldName CHARACTER(255) WITH COMPRESSION);
I want to know how to achieve the text compression in Postgres.
I know in SQL we can compress the text field like the following:
CREATE TABLE TableName (FieldName CHARACTER(255) WITH COMPRESSION);
I want to know how to achieve the text compression in Postgres.
Compression is enabled by default for all string types, you don't have to tell the database to do it. Check the manual about TOAST