You can continue typing indefinitely, until you use a semicolon or backslash-g.
Everything you type will be kept by psql until you are ready to send
the query. If you use backslash-p (\p), you can
even see everything that accumulated in the query buffer. In figure ,
three lines of text are accumulated and displayed by the user using backslash-p.