sabir-akhadov-localstack commented on code in PR #2744:
URL: 
https://github.com/apache/datafusion-sqlparser-rs/pull/2744#discussion_r4412360174


##########
src/parser/mod.rs:
##########
@@ -11696,6 +11701,11 @@ impl<'a> Parser<'a> {
             AlterTableOperation::SetLogged
         } else if self.parse_keywords(&[Keyword::SET, Keyword::UNLOGGED]) {
             AlterTableOperation::SetUnlogged
+        } else if self.parse_keyword(Keyword::RESET) {
+            self.expect_token(&Token::LParen)?;
+            let options = 
self.parse_comma_separated(Parser::parse_identifier)?;

Review Comment:
   `ALTER TABLE t RESET (toast.autovacuum_enabled)` fails with `Expected: ), 
found: .`; PostgreSQL 16 accepts it (`ALTER TABLE`). `Vec<ObjectName>` via 
`parse_object_name(false)` would cover the `toast.` prefix; `SET 
(toast.autovacuum_enabled = false)` has the same limitation through 
`parse_sql_option`, which is pre-existing.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to