I have a question regarding the client protocol:  Can a query that has been prepared using the "QUERY" protocol message be executed only once, or multiple times?  If it can be executed multiple times, with different parameter sets, how is the previous execution ended?  The documentation of the "CLOSE" message seems to indicate the the query is unregistered when it is closed.

Is there some documentation or sample code that illustrates the expected sequence of client messages for query execution?

Thanks,
Hans