What is the difference between the following two ways to define an array?
select '{1, 2, 3, 4}', ARRAY[1, 2, 3, 4];
For example the docs gives the following two examples:
-- An array value can be replaced completely:
UPDATE sal_emp SET pay_by_quarter = '{25000,25000,27000,27000}'
WHERE name = 'Carol';
-- or using the ARRAY expression syntax:
UPDATE sal_emp SET pay_by_quarter = ARRAY[25000,25000,27000,27000]
WHERE name = 'Carol';
Are there any differences between these two forms? https://www.postgresql.org/docs/current/arrays.html