↑↓ select ↵ open ⌫ change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Functions / Network Address Functions And Operators

macaddr8_set7bit

Read the PG 18 manual

Sets the 7th bit of the address to one, creating what is known as modified EUI-64, for inclusion in an IPv6 address.

Reading PG 18current·documented in 11 of 27 versions, 10 to 20

Signatures & examples

macaddr8_set7bit ( macaddr8 ) → macaddr8
Sets the 7th bit of the address to one, creating what is known as modified EUI-64, for inclusion in an IPv6 address.
macaddr8_set7bit(macaddr8 '00:34:56:ab:cd:ef') → 02:34:56:ff:fe:ab:cd:ef
Version history 2
  1. 12 → 13 changed
  2. 9.6 → 10 added

Definition snapshot: 2026-09-14T13:14:25.684213+00:00@99e6866c · English manual source