Hi,
The options like "sort" and "nulls" must be conditional. i.e. include onlywhen access method type is other than "gist" or "gin".
Please find attached patch and review.
Thanks,Surinder Kumar