Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: postgresql-cfbot/postgresql
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: cf/5985~1
Choose a base ref
...
head repository: postgresql-cfbot/postgresql
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: cf/5985
Choose a head ref
  • 5 commits
  • 24 files changed
  • 3 contributors

Commits on Oct 3, 2025

  1. Don't try to re-order the subcommands of CREATE SCHEMA

    transformCreateSchemaStmtElements has always believed that it is
    supposed to re-order the subcommands of CREATE SCHEMA into a safe
    execution order.  However, it is nowhere near being capable of doing
    that correctly.  Nor is there reason to think that it ever will be,
    or that that is a well-defined requirement, or that there's any basis
    in the SQL standard for it.  Moreover, the problem will get worse as
    we add more subcommand types.  Let's just drop the whole idea and
    execute the commands in the order given, which seems like a much less
    astonishment-prone definition anyway.
    
    Along the way, pass down a ParseState so that we can provide an
    error cursor for the "wrong schema name" error, and fix
    transformCreateSchemaStmtElements so that it doesn't scribble
    on the parsetree passed to it.
    
    Note: This will cause compatibility issue,
    for example:
    CREATE SCHEMA regress_schema_2
      CREATE VIEW abcd_view AS SELECT a FROM abcd
      CREATE TABLE abcd (a int);
    
    With the patch, it will throw an error, whereas on HEAD it won’t.
    
    Discussion: https://postgr.es/m/[email protected]
    tglsfdc authored and Commitfest Bot committed Oct 3, 2025
    Configuration menu
    Copy the full SHA
    04eb587 View commit details
    Browse the repository at this point in the history
  2. CREATE SCHEMA CREATE DOMAIN

    SQL standard allow domain to be specified with CREATE SCHEMA
    statement. This patch adds support in PostgreSQL for that.
    
    For example:
        CREATE SCHEMA schema_name AUTHORIZATION CURRENT_ROLE
        create domain ss as text not null;
    
    The domain will be created within the to be created schema.
    The domain name can be schema-qualified or database-qualified,
    however it's not allowed to let domain create within a different schema.
    
    Author: Kirill Reshke <[email protected]>
    Author: Jian He <[email protected]>
    Reviewed-by: Alvaro Herrera <[email protected]>
    Reviewed-by: Tom Lane <[email protected]>
    
    Discussion: https://postgr.es/m/CALdSSPh4jUSDsWu3K58hjO60wnTRR0DuO4CKRcwa8EVuOSfXxg@mail.gmail.com
    jianhe-fun authored and Commitfest Bot committed Oct 3, 2025
    Configuration menu
    Copy the full SHA
    d104f4a View commit details
    Browse the repository at this point in the history
  3. CREATE SCHEMA CREATE COLLATION

    SQL standard allow collation to be specified with CREATE SCHEMA
    statement. This patch adds support in PostgreSQL for that.
    
    For example:
        CREATE SCHEMA schema_name CREATE COLLATION coll_icu_und FROM "und-x-icu";
    
    The collation will be created within the to be created schema.
    The collation name can be schema-qualified or database-qualified,
    however it's not allowed to let collation create within a different schema.
    
    Note: src/bin/psql/tab-complete.in.c changes seems incorrect.
    
    Discussion: https://postgr.es/m/CALdSSPh4jUSDsWu3K58hjO60wnTRR0DuO4CKRcwa8EVuOSfXxg@mail.gmail.com
    jianhe-fun authored and Commitfest Bot committed Oct 3, 2025
    Configuration menu
    Copy the full SHA
    277f1eb View commit details
    Browse the repository at this point in the history
  4. CREATE SCHEMA CREATE TYPE

    SQL standard allow type to be specified with CREATE SCHEMA
    statement. This patch adds support in PostgreSQL for that.
    
    For example:
        CREATE SCHEMA schema_name CREATE TYPE ss;
    
    The type will be created within the to be created schema.  The type name can be
    schema-qualified or database-qualified, however it's not allowed to let type
    create within a different schema.
    
    TODO: tab complete for CREATE SCHEMA ... CREATE TYPE seems tricky
    
    Discussion: https://postgr.es/m/CALdSSPh4jUSDsWu3K58hjO60wnTRR0DuO4CKRcwa8EVuOSfXxg@mail.gmail.com
    jianhe-fun authored and Commitfest Bot committed Oct 3, 2025
    Configuration menu
    Copy the full SHA
    a839fac View commit details
    Browse the repository at this point in the history
  5. [CF 5985] v7 - CREATE SCHEMA ... CREATE DOMAIN support

    This branch was automatically generated by a robot using patches from an
    email thread registered at:
    
    https://commitfest.postgresql.org/patch/5985
    
    The branch will be overwritten each time a new patch version is posted to
    the thread, and also periodically to check for bitrot caused by changes
    on the master branch.
    
    Patch(es): https://www.postgresql.org/message-id/CACJufxGOtXuJD3VLOMUQr08Zt3=8HjH0KYk2NivYPuMbHG2JQg@mail.gmail.com
    Author(s): Jian He
    Commitfest Bot committed Oct 3, 2025
    Configuration menu
    Copy the full SHA
    669f1ea View commit details
    Browse the repository at this point in the history
Loading