<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def postgres(command):
 """ Runs the given command as the postgres user. """

    show = not command.startswith("psql")
    return sudo(command, show=show, user="postgres")