postgresql command tests