I know this is three years old, but I am now looking at this email can can't see the problem:
SET default_tablespace = 'pg_global';
CREATE TABLE test (x int); ERROR: only shared relations can be placed in pg_global tablespace
Did you want an error from the SET command?
That would probably be a decent addition but the request was for us to add “it is not permissible to specify the pg_global tablespace for either default_tablespace or temp_tablespace”. In the tablespace section per the request but maybe also within the settings definition section.