mirror of
https://github.com/postgres/postgres.git
synced 2026-01-27 21:43:08 +03:00
Avoid including commands/dbcommands.h in so many places
This has been done historically because of get_database_name (which since commitcb98e6fb8fbelongs in lsyscache.c/h, so let's move it there) and get_database_oid (which is in the right place, but whose declaration should appear in pg_database.h rather than dbcommands.h). Clean this up. Also, xlogreader.h and stringinfo.h are no longer needed by dbcommands.h since commitf1fd515b39, so remove them. Author: Álvaro Herrera <alvherre@kurilemu.de> Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com> Reviewed-by: Michael Paquier <michael@paquier.xyz> Discussion: https://postgr.es/m/202508191031.5ipojyuaswzt@alvherre.pgsql
This commit is contained in:
@@ -104,7 +104,7 @@ extern bool get_collation_isdeterministic(Oid colloid);
|
||||
extern char *get_constraint_name(Oid conoid);
|
||||
extern Oid get_constraint_index(Oid conoid);
|
||||
extern char get_constraint_type(Oid conoid);
|
||||
|
||||
extern char *get_database_name(Oid dbid);
|
||||
extern char *get_language_name(Oid langoid, bool missing_ok);
|
||||
extern Oid get_opclass_family(Oid opclass);
|
||||
extern Oid get_opclass_input_type(Oid opclass);
|
||||
|
||||
Reference in New Issue
Block a user