Fix window function detection
Fix window function detection

Postgres 11 changes catalog to support stored procedures. The new
implementation removes the proiswindow column and add an enum to
identify proc kind (in the windows function case, 'w').

eulerto/pgquarrel,eulerto/pgquarrel