The uuid-ossp module extension (plugin) for Postgres offers this alternative method for generating a UUID value.
uuid_generate_v1mc()
This function generates a version 1 UUID but uses a random multicast MAC address instead of the real MAC address of the computer.
I assume the intent here is to address a security concern about recording the MAC address of the database server. So instead we want to use another alternate MAC address in its place as a part of generating a Version 1 UUID value.
My question is: What exactly is this “random multicast MAC address” to be used in place of the db server’s own MAC?
I have googled/binged but found no good explanation. Is this some other MAC currently in use being found on the db server’s local network?
What are the practical issues involved in using this command, in the context of a primary key in Postgres?
Example data from calling uuid_generate_v1mc
repeatedly, with UUID values in first column:
e2a03f96-0e7f-11ea-9838-6bba9e946aa0 Bird 2019-11-24 06:01:41.394401
e30c64be-0e7f-11ea-8540-9b38c7ef1573 Bird 2019-11-24 06:01:42.108340
e33037ea-0e7f-11ea-ab4b-abc4bdb5ea40 Bird 2019-11-24 06:01:42.342973
e3495cca-0e7f-11ea-8070-03c037680e82 Bird 2019-11-24 06:01:42.507537
e3668dd6-0e7f-11ea-b4e7-87c2c65a3777 Bird 2019-11-24 06:01:42.699283