ALTER_CONVERSION(7pg15)
π NAME π
okay so bestie, gather round: this is ALTER_CONVERSION, the PostgreSQL 15.19 manual page (section 7, ALTER_CONVERSION(7pg15) energy) and itβs literally about changing the definition of a conversion. thatβs the whole assignment. π«Άβ¨
β¨ SYNOPSIS β¨
three sanctioned glow-up moves, pick your fave:
ALTER CONVERSION name RENAME TO new_name
ALTER CONVERSION name OWNER TO { new_owner | CURRENT_ROLE | CURRENT_USER | SESSION_USER }
ALTER CONVERSION name SET SCHEMA new_schema
πΈ DESCRIPTION πΈ
ALTER CONVERSION changes the definition of a conversion. main character behavior, honestly. π
You must own the conversion to use ALTER CONVERSION. no cap. To alter the owner, you must also be a direct or indirect member of the new owning role, and that role must have CREATE privilege on the conversionβs schema. (These restrictions enforce that altering the owner doesnβt do anything you couldnβt do by dropping and recreating the conversion. However, a superuser can alter ownership of any conversion anyway.)
π PARAMETERS π
nameβ the name (optionally schema-qualified) of an existing conversion. like, the conversion youβre editing, bestie. πnew_nameβ the new name of the conversion. rebrand era. π¦new_ownerβ the new owner of the conversion. handing over the keys. πnew_schemaβ the new schema for the conversion. moving day. πΈ
π¦ EXAMPLES π¦
To rename the conversion iso_8859_1_to_utf8 to latin1_to_unicode:
ALTER CONVERSION iso_8859_1_to_utf8 RENAME TO latin1_to_unicode;
To change the owner of the conversion iso_8859_1_to_utf8 to joe:
ALTER CONVERSION iso_8859_1_to_utf8 OWNER TO joe;
π COMPATIBILITY π
There is no ALTER CONVERSION statement in the SQL standard. so this is not a standard-core moment, fr fr. π
π SEE ALSO π
CREATE CONVERSION(CREATE_CONVERSION(7))DROP CONVERSION(DROP_CONVERSION(7))
okay thatβs the whole page, bestie. source/version vibes: PostgreSQL 15.19, dated 2026. slay, go alter some conversions responsibly. πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: postgresql15 15.19-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql15 15.19-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql15 15.19-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql15 15.19-160000.1.1 Β· PostgreSQL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms