Re: remove WITHOUT OIDS syntax for v19 - Mailing list pgsql-hackers

From Junwang Zhao
Subject Re: remove WITHOUT OIDS syntax for v19
Date
Msg-id CAEG8a3Lb2_aMg_ywrCz4=3C2=CUmNN43YVRB4xiWZ5WJVMQXxw@mail.gmail.com
Whole thread Raw
In response to Re: remove WITHOUT OIDS syntax for v19  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: remove WITHOUT OIDS syntax for v19
List pgsql-hackers
On Tue, Jul 15, 2025 at 11:11 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> Junwang Zhao <zhjwpku@gmail.com> writes:
> > WITH OIDS was removed in v12, I'm wondering if we could remove the
> > WITHOUT OIDS support for v19.
>
> Why?

Sorry I didn't mention the reason why I think WITHOUT OIDS should be removed.

WITHOUT OIDS has been a backward-compatible syntax for 6 years, so I
think maybe not too many users use it nowadays. Besides, there are
some hints in the code base that `WITHOUT OIDS` and `with (oids =
false)` will be removed someday(see the following diff), so I wonder
which day should it be?

-/* WITHOUT OIDS is legacy only */
 OptWith:
                        WITH reloptions                         { $$ = $2; }
-                       | WITHOUT OIDS                          { $$ = NIL; }
                        | /*EMPTY*/

-                       /*
-                        * This is not a great place for this test,
but there's no other
-                        * convenient place to filter the option out.
As WITH (oids =
-                        * false) will be removed someday, this seems
like an acceptable
-                        * amount of ugly.
-                        */

>
>                         regards, tom lane



--
Regards
Junwang Zhao



pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: patch: Use pg_assume in jsonb_util.c to fix GCC 15 warnings
Next
From: Peter Smith
Date:
Subject: IndexAmRoutine aminsertcleanup function can be NULL?