ALTER_CONVERSION(7pg15)

πŸ“¦ version 15.19, in opensuse-leap 16.0

πŸ’– 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 🌈


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