This is, in fact, exactly how you do it! (the file is just a list of commands passed to `psql` as though we typed them on the console directly, and there's nothing special about the `.sql` file extension)