I would like to save big arrays of integer (e.g. length = 1000) as bytea in postgres.
Example:
Given an integer (32 bits) array
x = [1]
I could insert the array in different ways in postgres, but which form is best practice (faster/less space in disk)?
INSERT INTO table (column_bytea) VALUES (E'\\000\\000\\000\\001'::bytea); -OCTET
INSERT INTO table (column_bytea) VALUES ('\000\000\000\001'); --ASCII
INSERT INTO table (column_bytea) VALUES (E'\x00000001'); --HEX
Thank you in advance.