File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -87,3 +87,18 @@ You can solve this problem by either:
8787PGAdapter supports ` COPY table_name FROM STDIN [BINARY] ` and ` COPY table_name TO STDOUT [BINARY] ` .
8888These commands can be used to copy data between different Cloud Spanner databases, or between a
8989Cloud Spanner database and a PostgreSQL database. See [ copy support] ( copy.md ) for more information.
90+
91+ ## How can I set a statement timeout?
92+ You can set the statement timeout that a connection should use by executing a
93+ ` set statement_timeout=<timeout> ` statement. The timeout is specified in milliseconds.
94+
95+ Example:
96+
97+ ``` sql
98+ -- Use a 10 second (10,000 milliseconds) timeout.
99+ set statement_timeout= 10000 ;
100+ select *
101+ from large_table
102+ order by my_col;
103+ ```
104+
You can’t perform that action at this time.
0 commit comments