{
    "content": [
        {
            "type": "text",
            "text": "# CREATE_USER (man)\n\n## NAME\n\nCREATEUSER - define a new database role\n\n## SYNOPSIS\n\nCREATE USER name [ [ WITH ] option [ ... ] ]\nwhere option can be:\nSUPERUSER | NOSUPERUSER\n| CREATEDB | NOCREATEDB\n| CREATEROLE | NOCREATEROLE\n| INHERIT | NOINHERIT\n| LOGIN | NOLOGIN\n| REPLICATION | NOREPLICATION\n| BYPASSRLS | NOBYPASSRLS\n| CONNECTION LIMIT connlimit\n| [ ENCRYPTED ] PASSWORD 'password' | PASSWORD NULL\n| VALID UNTIL 'timestamp'\n| IN ROLE rolename [, ...]\n| IN GROUP rolename [, ...]\n| ROLE rolename [, ...]\n| ADMIN rolename [, ...]\n| USER rolename [, ...]\n| SYSID uid\n\n## DESCRIPTION\n\nCREATE USER is now an alias for CREATE ROLE. The only difference is that when the command is\nspelled CREATE USER, LOGIN is assumed by default, whereas NOLOGIN is assumed when the command\nis spelled CREATE ROLE.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **COMPATIBILITY**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "CREATE_USER",
        "section": "",
        "mode": "man",
        "summary": "CREATEUSER - define a new database role",
        "synopsis": "CREATE USER name [ [ WITH ] option [ ... ] ]\nwhere option can be:\nSUPERUSER | NOSUPERUSER\n| CREATEDB | NOCREATEDB\n| CREATEROLE | NOCREATEROLE\n| INHERIT | NOINHERIT\n| LOGIN | NOLOGIN\n| REPLICATION | NOREPLICATION\n| BYPASSRLS | NOBYPASSRLS\n| CONNECTION LIMIT connlimit\n| [ ENCRYPTED ] PASSWORD 'password' | PASSWORD NULL\n| VALID UNTIL 'timestamp'\n| IN ROLE rolename [, ...]\n| IN GROUP rolename [, ...]\n| ROLE rolename [, ...]\n| ADMIN rolename [, ...]\n| USER rolename [, ...]\n| SYSID uid",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "CREATEROLE",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/CREATEROLE/7/json"
            },
            {
                "name": "USER",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/USER/7/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 21,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "COMPATIBILITY",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "CREATEUSER - define a new database role\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "CREATE USER name [ [ WITH ] option [ ... ] ]\n\nwhere option can be:\n\nSUPERUSER | NOSUPERUSER\n| CREATEDB | NOCREATEDB\n| CREATEROLE | NOCREATEROLE\n| INHERIT | NOINHERIT\n| LOGIN | NOLOGIN\n| REPLICATION | NOREPLICATION\n| BYPASSRLS | NOBYPASSRLS\n| CONNECTION LIMIT connlimit\n| [ ENCRYPTED ] PASSWORD 'password' | PASSWORD NULL\n| VALID UNTIL 'timestamp'\n| IN ROLE rolename [, ...]\n| IN GROUP rolename [, ...]\n| ROLE rolename [, ...]\n| ADMIN rolename [, ...]\n| USER rolename [, ...]\n| SYSID uid\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "CREATE USER is now an alias for CREATE ROLE. The only difference is that when the command is\nspelled CREATE USER, LOGIN is assumed by default, whereas NOLOGIN is assumed when the command\nis spelled CREATE ROLE.\n",
                "subsections": []
            },
            "COMPATIBILITY": {
                "content": "The CREATE USER statement is a PostgreSQL extension. The SQL standard leaves the definition\nof users to the implementation.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "CREATE ROLE (CREATEROLE(7))\n\n\n\nPostgreSQL 14.23                                2026                                  CREATE USER(7)",
                "subsections": []
            }
        }
    }
}