PostgreSQL笔记
系统目录
pg_available_extensionspg_available_extensionspg_available_extensionspg_available_extensionspg_available_extensionspg_available_extensionspg_available_extensionspg_available_extensionspg_available_extensionspg_available_extensionspg_available_extensions
pg_backend_memory_contexts
pg_castpg_castpg_castpg_castpg_castpg_castpg_castpg_castpg_castpg_castpg_castpg_castpg_classpg_classpg_classpg_classpg_classpg_classpg_classpg_classpg_classpg_classpg_classpg_classpg_collationpg_collationpg_collationpg_collationpg_collationpg_collationpg_collationpg_collationpg_collationpg_collationpg_collation
pg_configpg_configpg_configpg_configpg_configpg_config
pg_constraintpg_constraintpg_constraintpg_constraintpg_constraintpg_constraintpg_constraintpg_constraintpg_constraintpg_constraintpg_constraintpg_constraintpg_conversionpg_conversionpg_conversionpg_conversionpg_conversionpg_conversionpg_conversionpg_conversionpg_conversionpg_conversionpg_conversionpg_conversionpg_cursorspg_cursorspg_cursorspg_cursorspg_cursorspg_cursorspg_cursorspg_cursorspg_cursorspg_cursorspg_cursorspg_cursorspg_databasepg_databasepg_databasepg_databasepg_databasepg_databasepg_databasepg_databasepg_databasepg_databasepg_databasepg_databasepg_db_role_settingpg_db_role_settingpg_db_role_settingpg_db_role_settingpg_db_role_settingpg_db_role_settingpg_db_role_settingpg_db_role_settingpg_db_role_settingpg_db_role_settingpg_db_role_settingpg_db_role_settingpg_default_aclpg_default_aclpg_default_aclpg_default_aclpg_default_aclpg_default_aclpg_default_aclpg_default_aclpg_default_aclpg_default_aclpg_default_aclpg_default_aclpg_dependpg_dependpg_dependpg_dependpg_dependpg_dependpg_dependpg_dependpg_dependpg_dependpg_dependpg_dependpg_descriptionpg_descriptionpg_descriptionpg_descriptionpg_descriptionpg_descriptionpg_descriptionpg_descriptionpg_descriptionpg_descriptionpg_descriptionpg_descriptionpg_enumpg_enumpg_enumpg_enumpg_enumpg_enumpg_enumpg_enumpg_enumpg_enumpg_enumpg_enumpg_event_triggerpg_event_triggerpg_event_triggerpg_event_triggerpg_event_triggerpg_event_triggerpg_event_triggerpg_event_triggerpg_event_trigger
pg_extensionpg_extensionpg_extensionpg_extensionpg_extensionpg_extensionpg_extensionpg_extensionpg_extensionpg_extensionpg_extension
pg_file_settingspg_file_settingspg_file_settingspg_file_settingspg_file_settingspg_file_settingspg_file_settings
pg_foreign_data_wrapperpg_foreign_data_wrapperpg_foreign_data_wrapperpg_foreign_data_wrapperpg_foreign_data_wrapperpg_foreign_data_wrapperpg_foreign_data_wrapperpg_foreign_data_wrapperpg_foreign_data_wrapperpg_foreign_data_wrapperpg_foreign_data_wrapperpg_foreign_data_wrapperpg_foreign_serverpg_foreign_serverpg_foreign_serverpg_foreign_serverpg_foreign_serverpg_foreign_serverpg_foreign_serverpg_foreign_serverpg_foreign_serverpg_foreign_serverpg_foreign_serverpg_foreign_serverpg_foreign_tablepg_foreign_tablepg_foreign_tablepg_foreign_tablepg_foreign_tablepg_foreign_tablepg_foreign_tablepg_foreign_tablepg_foreign_tablepg_foreign_tablepg_foreign_table
pg_grouppg_grouppg_grouppg_grouppg_grouppg_grouppg_grouppg_grouppg_grouppg_grouppg_grouppg_grouppg_hba_file_rulespg_hba_file_rulespg_hba_file_rulespg_hba_file_rulespg_hba_file_rules
pg_indexpg_indexpg_indexpg_indexpg_indexpg_indexpg_indexpg_indexpg_indexpg_indexpg_indexpg_indexpg_indexespg_indexespg_indexespg_indexespg_indexespg_indexespg_indexespg_indexespg_indexespg_indexespg_indexespg_indexespg_inheritspg_inheritspg_inheritspg_inheritspg_inheritspg_inheritspg_inheritspg_inheritspg_inheritspg_inheritspg_inheritspg_inheritspg_init_privspg_init_privspg_init_privspg_init_privspg_init_privspg_init_privs
pg_languagepg_languagepg_languagepg_languagepg_languagepg_languagepg_languagepg_languagepg_languagepg_languagepg_languagepg_languagepg_largeobjectpg_largeobjectpg_largeobjectpg_largeobjectpg_largeobjectpg_largeobjectpg_largeobjectpg_largeobjectpg_largeobjectpg_largeobjectpg_largeobjectpg_largeobjectpg_largeobject_metadatapg_largeobject_metadatapg_largeobject_metadatapg_largeobject_metadatapg_largeobject_metadatapg_largeobject_metadatapg_largeobject_metadatapg_largeobject_metadatapg_largeobject_metadatapg_largeobject_metadatapg_largeobject_metadatapg_largeobject_metadatapg_lockspg_lockspg_lockspg_lockspg_lockspg_lockspg_lockspg_lockspg_lockspg_lockspg_lockspg_lockspg_matviewspg_matviewspg_matviewspg_matviewspg_matviewspg_matviewspg_matviewspg_matviewspg_matviews
pg_namespacepg_namespacepg_namespacepg_namespacepg_namespacepg_namespacepg_namespacepg_namespacepg_namespacepg_namespacepg_namespacepg_namespacepg_opclasspg_opclasspg_opclasspg_opclasspg_opclasspg_opclasspg_opclasspg_opclasspg_opclasspg_opclasspg_opclasspg_opclasspg_operatorpg_operatorpg_operatorpg_operatorpg_operatorpg_operatorpg_operatorpg_operatorpg_operatorpg_operatorpg_operatorpg_operatorpg_opfamilypg_opfamilypg_opfamilypg_opfamilypg_opfamilypg_opfamilypg_opfamilypg_opfamilypg_opfamilypg_opfamilypg_opfamilypg_opfamilypg_partitioned_tablepg_partitioned_tablepg_partitioned_tablepg_partitioned_tablepg_partitioned_table
pg_pltemplatepg_pltemplatepg_pltemplatepg_pltemplatepg_pltemplatepg_pltemplatepg_pltemplatepg_pltemplatepg_pltemplatepg_pltemplatepg_policiespg_policiespg_policiespg_policiespg_policiespg_policiespg_policies
pg_policypg_policypg_policypg_policypg_policypg_policypg_policy
pg_prepared_statementspg_prepared_statementspg_prepared_statementspg_prepared_statementspg_prepared_statementspg_prepared_statementspg_prepared_statementspg_prepared_statementspg_prepared_statementspg_prepared_statementspg_prepared_statementspg_prepared_statementspg_prepared_xactspg_prepared_xactspg_prepared_xactspg_prepared_xactspg_prepared_xactspg_prepared_xactspg_prepared_xactspg_prepared_xactspg_prepared_xactspg_prepared_xactspg_prepared_xactspg_prepared_xactspg_procpg_procpg_procpg_procpg_procpg_procpg_procpg_procpg_procpg_procpg_procpg_procpg_publicationpg_publicationpg_publicationpg_publicationpg_publicationpg_rangepg_rangepg_rangepg_rangepg_range
pg_publication_relpg_publication_relpg_publication_relpg_publication_relpg_publication_relpg_replication_originpg_replication_originpg_replication_slots
pg_publication_tablespg_publication_tablespg_publication_tablespg_publication_tablespg_publication_tablespg_replication_origin_statuspg_replication_origin_status
pg_rangepg_rangepg_rangepg_rangepg_rangepg_replication_slotspg_replication_slots
pg_replication_originpg_replication_originpg_replication_originpg_replication_originpg_replication_origin
pg_replication_origin_statuspg_replication_origin_statuspg_replication_origin_statuspg_replication_origin_statuspg_replication_origin_status
pg_replication_slotspg_replication_slotspg_replication_slotspg_replication_slotspg_replication_slots
pg_rewritepg_rewritepg_rewritepg_rewritepg_rewritepg_rewritepg_rewritepg_rewritepg_rewritepg_rewritepg_rewritepg_rewritepg_rolespg_rolespg_rolespg_rolespg_rolespg_rolespg_rolespg_rolespg_rolespg_rolespg_rolespg_rolespg_rulespg_rulespg_rulespg_rulespg_rulespg_rulespg_rulespg_rulespg_rulespg_rulespg_rulespg_rulespg_seclabelpg_seclabelpg_seclabelpg_seclabelpg_seclabelpg_seclabelpg_seclabelpg_seclabelpg_seclabelpg_seclabelpg_seclabel
pg_seclabelspg_seclabelspg_seclabelspg_seclabelspg_seclabelspg_seclabelspg_seclabelspg_seclabelspg_seclabelspg_seclabelspg_seclabels
pg_sequencepg_sequencepg_sequencepg_sequencepg_sequence
pg_sequencespg_sequencespg_sequencespg_sequencespg_sequences
pg_settingspg_settingspg_settingspg_settingspg_settingspg_settingspg_settingspg_settingspg_settingspg_settingspg_settingspg_settingspg_shadowpg_shadowpg_shadowpg_shadowpg_shadowpg_shadowpg_shadowpg_shadowpg_shadowpg_shadowpg_shadowpg_shadowpg_shdependpg_shdependpg_shdependpg_shdependpg_shdependpg_shdependpg_shdependpg_shdependpg_shdependpg_shdependpg_shdependpg_shdependpg_shdescriptionpg_shdescriptionpg_shdescriptionpg_shdescriptionpg_shdescriptionpg_shdescriptionpg_shdescriptionpg_shdescriptionpg_shdescriptionpg_shdescriptionpg_shdescriptionpg_shdescriptionpg_shmem_allocationspg_shmem_allocations
pg_shseclabelpg_shseclabelpg_shseclabelpg_shseclabelpg_shseclabelpg_shseclabelpg_shseclabelpg_shseclabelpg_shseclabelpg_shseclabel
pg_statisticpg_statisticpg_statisticpg_statisticpg_statisticpg_statisticpg_statisticpg_statisticpg_statisticpg_statisticpg_statisticpg_statisticpg_statistic_extpg_statistic_extpg_statistic_extpg_statistic_extpg_statistic_ext
pg_statistic_ext_datapg_statistic_ext_datapg_statistic_ext_data
pg_statspg_statspg_statspg_statspg_statspg_statspg_statspg_statspg_statspg_statspg_statspg_statspg_stats_extpg_stats_extpg_stats_ext
pg_stats_ext_exprs
pg_subscriptionpg_subscriptionpg_subscriptionpg_subscriptionpg_subscription
pg_subscription_relpg_subscription_relpg_subscription_relpg_subscription_relpg_subscription_rel
pg_tablespg_tablespg_tablespg_tablespg_tablespg_tablespg_tablespg_tablespg_tablespg_tablespg_tablespg_tablespg_tablespacepg_tablespacepg_tablespacepg_tablespacepg_tablespacepg_tablespacepg_tablespacepg_tablespacepg_tablespacepg_tablespacepg_tablespacepg_tablespacepg_timezone_abbrevspg_timezone_abbrevspg_timezone_abbrevspg_timezone_abbrevspg_timezone_abbrevspg_timezone_abbrevspg_timezone_abbrevspg_timezone_abbrevspg_timezone_abbrevspg_timezone_abbrevspg_timezone_abbrevspg_timezone_abbrevspg_timezone_namespg_timezone_namespg_timezone_namespg_timezone_namespg_timezone_namespg_timezone_namespg_timezone_namespg_timezone_namespg_timezone_namespg_timezone_namespg_timezone_namespg_timezone_namespg_transformpg_transformpg_transformpg_transformpg_transformpg_transformpg_transform
pg_triggerpg_triggerpg_triggerpg_triggerpg_triggerpg_triggerpg_triggerpg_triggerpg_triggerpg_triggerpg_triggerpg_triggerpg_ts_configpg_ts_configpg_ts_configpg_ts_configpg_ts_configpg_ts_configpg_ts_configpg_ts_configpg_ts_configpg_ts_configpg_ts_configpg_ts_configpg_ts_config_mappg_ts_config_mappg_ts_config_mappg_ts_config_mappg_ts_config_mappg_ts_config_mappg_ts_config_mappg_ts_config_mappg_ts_config_mappg_ts_config_mappg_ts_config_mappg_ts_config_mappg_ts_dictpg_ts_dictpg_ts_dictpg_ts_dictpg_ts_dictpg_ts_dictpg_ts_dictpg_ts_dictpg_ts_dictpg_ts_dictpg_ts_dictpg_ts_dictpg_ts_parserpg_ts_parserpg_ts_parserpg_ts_parserpg_ts_parserpg_ts_parserpg_ts_parserpg_ts_parserpg_ts_parserpg_ts_parserpg_ts_parserpg_ts_parserpg_ts_templatepg_ts_templatepg_ts_templatepg_ts_templatepg_ts_templatepg_ts_templatepg_ts_templatepg_ts_templatepg_ts_templatepg_ts_templatepg_ts_templatepg_ts_templatepg_typepg_typepg_typepg_typepg_typepg_typepg_typepg_typepg_typepg_typepg_typepg_typepg_userpg_userpg_userpg_userpg_userpg_userpg_userpg_userpg_userpg_userpg_userpg_userpg_user_mappingpg_user_mappingpg_user_mappingpg_user_mappingpg_user_mappingpg_user_mappingpg_user_mappingpg_user_mappingpg_user_mappingpg_user_mappingpg_user_mappingpg_user_mappingpg_user_mappingspg_user_mappingspg_user_mappingspg_user_mappingspg_user_mappingspg_user_mappingspg_user_mappingspg_user_mappingspg_user_mappingspg_user_mappingspg_user_mappingspg_user_mappingspg_viewspg_viewspg_viewspg_viewspg_viewspg_viewspg_viewspg_viewspg_viewspg_viewspg_viewspg_views
情报模式
check_constraint_routine_usagecheck_constraint_routine_usagecheck_constraint_routine_usagecheck_constraint_routine_usagecheck_constraint_routine_usagecheck_constraint_routine_usagecheck_constraint_routine_usagecheck_constraint_routine_usagecheck_constraint_routine_usagecheck_constraint_routine_usagecheck_constraint_routine_usagecheck_constraint_routine_usagecheck_constraintscheck_constraintscheck_constraintscheck_constraintscheck_constraintscheck_constraintscheck_constraintscheck_constraintscheck_constraintscheck_constraintscheck_constraintscheck_constraintscollation_character_set_applicabilitycollation_character_set_applicabilitycollation_character_set_applicabilitycollation_character_set_applicabilitycollation_character_set_applicabilitycollation_character_set_applicabilitycollation_character_set_applicabilitycollation_character_set_applicabilitycollation_character_set_applicabilitycollation_character_set_applicabilitycollation_character_set_applicability
collationscollationscollationscollationscollationscollationscollationscollationscollationscollationscollations
column_column_usagecolumn_column_usagecolumn_column_usage
column_domain_usagecolumn_domain_usagecolumn_domain_usagecolumn_domain_usagecolumn_domain_usagecolumn_domain_usagecolumn_domain_usagecolumn_domain_usagecolumn_domain_usagecolumn_domain_usagecolumn_domain_usagecolumn_domain_usagecolumn_optionscolumn_optionscolumn_optionscolumn_optionscolumn_optionscolumn_optionscolumn_optionscolumn_optionscolumn_optionscolumn_options
column_privilegescolumn_privilegescolumn_privilegescolumn_privilegescolumn_privilegescolumn_privilegescolumn_privilegescolumn_privilegescolumn_privilegescolumn_privilegescolumn_privilegescolumn_privilegescolumn_udt_usagecolumn_udt_usagecolumn_udt_usagecolumn_udt_usagecolumn_udt_usagecolumn_udt_usagecolumn_udt_usagecolumn_udt_usagecolumn_udt_usagecolumn_udt_usagecolumn_udt_usagecolumn_udt_usagecolumnscolumnscolumnscolumnscolumnscolumnscolumnscolumnscolumnscolumnscolumnscolumnsconstraint_column_usageconstraint_column_usageconstraint_column_usageconstraint_column_usageconstraint_column_usageconstraint_column_usageconstraint_column_usageconstraint_column_usageconstraint_column_usageconstraint_column_usageconstraint_column_usageconstraint_column_usageconstraint_table_usageconstraint_table_usageconstraint_table_usageconstraint_table_usageconstraint_table_usageconstraint_table_usageconstraint_table_usageconstraint_table_usageconstraint_table_usageconstraint_table_usageconstraint_table_usageconstraint_table_usagedata_type_privilegesdata_type_privilegesdata_type_privilegesdata_type_privilegesdata_type_privilegesdata_type_privilegesdata_type_privilegesdata_type_privilegesdata_type_privilegesdata_type_privilegesdata_type_privilegesdata_type_privilegesdomain_constraintsdomain_constraintsdomain_constraintsdomain_constraintsdomain_constraintsdomain_constraintsdomain_constraintsdomain_constraintsdomain_constraintsdomain_constraintsdomain_constraintsdomain_constraintsdomain_udt_usagedomain_udt_usagedomain_udt_usagedomain_udt_usagedomain_udt_usagedomain_udt_usagedomain_udt_usagedomain_udt_usagedomain_udt_usagedomain_udt_usagedomain_udt_usagedomain_udt_usagedomainsdomainsdomainsdomainsdomainsdomainsdomainsdomainsdomainsdomainsdomainsdomainselement_typeselement_typeselement_typeselement_typeselement_typeselement_typeselement_typeselement_typeselement_typeselement_typeselement_typeselement_typesenabled_rolesenabled_rolesenabled_rolesenabled_rolesenabled_rolesenabled_rolesenabled_rolesenabled_rolesenabled_rolesenabled_rolesenabled_rolesenabled_rolesforeign_data_wrapper_optionsforeign_data_wrapper_optionsforeign_data_wrapper_optionsforeign_data_wrapper_optionsforeign_data_wrapper_optionsforeign_data_wrapper_optionsforeign_data_wrapper_optionsforeign_data_wrapper_optionsforeign_data_wrapper_optionsforeign_data_wrapper_optionsforeign_data_wrapper_optionsforeign_data_wrapper_optionsforeign_data_wrappersforeign_data_wrappersforeign_data_wrappersforeign_data_wrappersforeign_data_wrappersforeign_data_wrappersforeign_data_wrappersforeign_data_wrappersforeign_data_wrappersforeign_data_wrappersforeign_data_wrappersforeign_data_wrappersforeign_server_optionsforeign_server_optionsforeign_server_optionsforeign_server_optionsforeign_server_optionsforeign_server_optionsforeign_server_optionsforeign_server_optionsforeign_server_optionsforeign_server_optionsforeign_server_optionsforeign_server_optionsforeign_serversforeign_serversforeign_serversforeign_serversforeign_serversforeign_serversforeign_serversforeign_serversforeign_serversforeign_serversforeign_serversforeign_serversforeign_table_optionsforeign_table_optionsforeign_table_optionsforeign_table_optionsforeign_table_optionsforeign_table_optionsforeign_table_optionsforeign_table_optionsforeign_table_optionsforeign_table_optionsforeign_table_options
foreign_tablesforeign_tablesforeign_tablesforeign_tablesforeign_tablesforeign_tablesforeign_tablesforeign_tablesforeign_tablesforeign_tablesforeign_tables
information_schema_catalog_nameinformation_schema_catalog_nameinformation_schema_catalog_nameinformation_schema_catalog_nameinformation_schema_catalog_nameinformation_schema_catalog_nameinformation_schema_catalog_nameinformation_schema_catalog_nameinformation_schema_catalog_nameinformation_schema_catalog_nameinformation_schema_catalog_nameinformation_schema_catalog_namekey_column_usagekey_column_usagekey_column_usagekey_column_usagekey_column_usagekey_column_usagekey_column_usagekey_column_usagekey_column_usagekey_column_usagekey_column_usagekey_column_usageparametersparametersparametersparametersparametersparametersparametersparametersparametersparametersparametersparametersreferential_constraintsreferential_constraintsreferential_constraintsreferential_constraintsreferential_constraintsreferential_constraintsreferential_constraintsreferential_constraintsreferential_constraintsreferential_constraintsreferential_constraintsreferential_constraintsrole_column_grantsrole_column_grantsrole_column_grantsrole_column_grantsrole_column_grantsrole_column_grantsrole_column_grantsrole_column_grantsrole_column_grantsrole_column_grantsrole_column_grantsrole_column_grantsrole_routine_grantsrole_routine_grantsrole_routine_grantsrole_routine_grantsrole_routine_grantsrole_routine_grantsrole_routine_grantsrole_routine_grantsrole_routine_grantsrole_routine_grantsrole_routine_grantsrole_routine_grantsrole_table_grantsrole_table_grantsrole_table_grantsrole_table_grantsrole_table_grantsrole_table_grantsrole_table_grantsrole_table_grantsrole_table_grantsrole_table_grantsrole_table_grantsrole_table_grantsrole_udt_grantsrole_udt_grantsrole_udt_grantsrole_udt_grantsrole_udt_grantsrole_udt_grantsrole_udt_grantsrole_udt_grantsrole_udt_grantsrole_udt_grants
role_usage_grantsrole_usage_grantsrole_usage_grantsrole_usage_grantsrole_usage_grantsrole_usage_grantsrole_usage_grantsrole_usage_grantsrole_usage_grantsrole_usage_grantsrole_usage_grantsrole_usage_grantsroutine_column_usage
routine_privilegesroutine_privilegesroutine_privilegesroutine_privilegesroutine_privilegesroutine_privilegesroutine_privilegesroutine_privilegesroutine_privilegesroutine_privilegesroutine_privilegesroutine_privilegesroutine_routine_usage
routine_sequence_usage
routine_table_usage
routinesroutinesroutinesroutinesroutinesroutinesroutinesroutinesroutinesroutinesroutinesroutinesschemataschemataschemataschemataschemataschemataschemataschemataschemataschemataschemataschematasequencessequencessequencessequencessequencessequencessequencessequencessequencessequencessequencessequencessql_featuressql_featuressql_featuressql_featuressql_featuressql_featuressql_featuressql_featuressql_featuressql_featuressql_featuressql_featuressql_implementation_infosql_implementation_infosql_implementation_infosql_implementation_infosql_implementation_infosql_implementation_infosql_implementation_infosql_implementation_infosql_implementation_infosql_implementation_infosql_implementation_infosql_implementation_info
sql_languagessql_languagessql_languagessql_languagessql_languagessql_languagessql_languagessql_languagessql_languagessql_languages
sql_packagessql_packagessql_packagessql_packagessql_packagessql_packagessql_packagessql_packagessql_packagessql_packagessql_partssql_partssql_partssql_partssql_partssql_partssql_partssql_partssql_partssql_partssql_partssql_partssql_sizingsql_sizingsql_sizingsql_sizingsql_sizingsql_sizingsql_sizingsql_sizingsql_sizingsql_sizingsql_sizingsql_sizing
sql_sizing_profilessql_sizing_profilessql_sizing_profilessql_sizing_profilessql_sizing_profilessql_sizing_profilessql_sizing_profilessql_sizing_profilessql_sizing_profilessql_sizing_profilestable_constraintstable_constraintstable_constraintstable_constraintstable_constraintstable_constraintstable_constraintstable_constraintstable_constraintstable_constraintstable_constraintstable_constraintstable_privilegestable_privilegestable_privilegestable_privilegestable_privilegestable_privilegestable_privilegestable_privilegestable_privilegestable_privilegestable_privilegestable_privilegestablestablestablestablestablestablestablestablestablestablestablestablestransformstransformstransformstransformstransformstransformstransforms
triggered_update_columnstriggered_update_columnstriggered_update_columnstriggered_update_columnstriggered_update_columnstriggered_update_columnstriggered_update_columnstriggered_update_columnstriggered_update_columnstriggered_update_columnstriggered_update_columnstriggered_update_columnstriggerstriggerstriggerstriggerstriggerstriggerstriggerstriggerstriggerstriggerstriggerstriggersudt_privilegesudt_privilegesudt_privilegesudt_privilegesudt_privilegesudt_privilegesudt_privilegesudt_privilegesudt_privilegesudt_privileges
usage_privilegesusage_privilegesusage_privilegesusage_privilegesusage_privilegesusage_privilegesusage_privilegesusage_privilegesusage_privilegesusage_privilegesusage_privilegesusage_privilegesuser_defined_typesuser_defined_typesuser_defined_typesuser_defined_typesuser_defined_typesuser_defined_typesuser_defined_typesuser_defined_typesuser_defined_typesuser_defined_types
user_mapping_optionsuser_mapping_optionsuser_mapping_optionsuser_mapping_optionsuser_mapping_optionsuser_mapping_optionsuser_mapping_optionsuser_mapping_optionsuser_mapping_optionsuser_mapping_optionsuser_mapping_optionsuser_mapping_optionsuser_mappingsuser_mappingsuser_mappingsuser_mappingsuser_mappingsuser_mappingsuser_mappingsuser_mappingsuser_mappingsuser_mappingsuser_mappingsuser_mappingsview_column_usageview_column_usageview_column_usageview_column_usageview_column_usageview_column_usageview_column_usageview_column_usageview_column_usageview_column_usageview_column_usageview_column_usageview_routine_usageview_routine_usageview_routine_usageview_routine_usageview_routine_usageview_routine_usageview_routine_usageview_routine_usageview_routine_usageview_routine_usageview_routine_usageview_routine_usageview_table_usageview_table_usageview_table_usageview_table_usageview_table_usageview_table_usageview_table_usageview_table_usageview_table_usageview_table_usageview_table_usageview_table_usageviewsviewsviewsviewsviewsviewsviewsviewsviewsviewsviewsviews
创建文件示例
CREATE USER CREATE USER takahashi_user WITH PASSWORD 'takahashi' SUPERUSER;
takahashi_userで入りなおす。
CREATE TABLESPACE CREATE TABLESPACE takahashi_tablespace
OWNER takahashi_user
LOCATION 'C:/Work/postgres/';
※該当フォルダにおけるフルコントロール権限を付与すること。
CREATE DATABASE create database takahashi_database
TABLESPACE = takahashi_tablespace;
CREATE SCHEMA create schema takahashi_schema;
CREATE ROLE CREATE ROLE takahashi_role
CREATEDB
CREATEROLE
INHERIT;
CREATE GROUP -
CREATE TABLE CREATE TABLE takahashi_table
(id char(4) not null,
name text not null,
food text not null,
PRIMARY KEY(id));
INSERT INTO takahashi_table(id,name,food) VALUES (1,'hoge','おにぎり');
INSERT INTO takahashi_table(id,name,food) VALUES (2,'fuga','肉');
INSERT INTO takahashi_table(id,name,food) VALUES (3,'piyo','スープ');
commit;
CREATE TABLE takahashi_table2
(id char(4) not null,
name text not null,
food text not null,
PRIMARY KEY(id));
CREATE TABLE takahashi_table3
(id char(4) not null,
name text not null,
food text not null,
PRIMARY KEY(id));
CREATE TABLE AS -
CREATE INDEX create index on takahashi_table (id);
CREATE FUNCTION CREATE FUNCTION takahashi_procedure() RETURNS trigger AS $takahashi_procedure$
BEGIN
INSERT INTO takahashi_table2 VALUES (NEW.id+1, NEW.name, NEW.food);
RETURN NEW;
END;
$takahashi_procedure$
LANGUAGE plpgsql;
CREATE AGGREGATE CREATE FUNCTION takahashi_text_add(text,text) RETURNS text
AS 'SELECT concat($1,''+'',$2)'
LANGUAGE SQL;
SELECT takahashi_text_add('a','b');
CREATE AGGREGATE takahashi_aggregate (text)
( sfunc = takahashi_text_add,
stype = text,
initcond = '');
CREATE CAST CREATE FUNCTION takahashi_b2n(bool) RETURNS numeric(1) AS
'select
case
when $1 IS TRUE
then CAST(1 AS NUMERIC(1))
else CAST(0 AS NUMERIC(1))
end;'
LANGUAGE SQL;
create cast(bool as numeric) WITH FUNCTION takahashi_b2n(bool) AS ASSIGNMENT;
CREATE COLLATION CREATE COLLATION takahashi_collation (locale = 'fr_FR.utf8');
CREATE DOMAIN CREATE DOMAIN takahashi_domain AS TEXT
CHECK(
VALUE ~ '^\\d{5}$'
OR VALUE ~ '^\\d{5}-\\d{4}$'
);
CREATE EXTENSION CREATE EXTENSION hstore;
CREATE VIEW CREATE VIEW takahashi_view AS SELECT name, food FROM takahashi_table;
CREATE TYPE create type takahashi_type as (
h_id int,
h_name text
);
CREATE MATERIALIZED VIEW create materialized view takahashi_materializedview
as select id, name from takahashi_table;
refresh materialized view takahashi_materializedview;
CREATE RULE CREATE RULE takahashi_rule
AS ON update TO takahashi_table DO ALSO select * from takahashi_table3;
CREATE SEQUENCE CREATE SEQUENCE takahashi_sequence AS integer;
CREATE TEXT SEARCH CONFIGURATION CREATE TEXT SEARCH CONFIGURATION takahashi_textsearchconfiguration (copy=simple);
CREATE TEXT SEARCH DICTIONARY type nul > "C:/Program Files/PostgreSQL/11/share/tsearch_data/myrussian.stop"
CREATE TEXT SEARCH DICTIONARY takahashi_textsearchdictionary(
template = snowball,
language = russian,
stopwords = myrussian
);
CREATE TEXT SEARCH PARSER CREATE TEXT SEARCH PARSER takahashi_textsearchparser (
START = prsd_start ,
GETTOKEN = prsd_nexttoken ,
END = prsd_end ,
LEXTYPES =prsd_lextype,
HEADLINE = prsd_headline
);
CREATE TEXT SEARCH TEMPLATE CREATE TEXT SEARCH TEMPLATE takahashi_textsearchtemplate (
LEXIZE = dsimple_lexize
);
CREATE TRIGGER CREATE TRIGGER takahashi_trigger AFTER INSERT ON takahashi_table FOR EACH ROW
EXECUTE FUNCTION takahashi_procedure();
CREATE SERVER create extension postgres_fdw;
create server takahashi_server
foreign data wrapper postgres_fdw
options (host '13.115.0.163', port '5432', dbname 'postgres');
CREATE FOREIGN DATA WRAPPER CREATE FOREIGN DATA WRAPPER takahashi_foreigndatawrapper
OPTIONS (debug 'true');
CREATE FOREIGN TABLE CREATE FOREIGN TABLE takahashi_foreigntable (aid integer, bid integer, abalance integer, filler character(84))
SERVER takahashi_server OPTIONS (schema_name 'postgres', table_name 'takahashi_table');
CREATE USER MAPPING -- 先にもtakahashi_userを作成
create user mapping for takahashi_user
server takahashi_server
options (user 'takahashi_user', password 'takahashi');
grant all on foreign server takahashi_server to takahashi_user;
-- 以下はやらなくてよい。
import foreign schema postgres limit to (takahashi_table)
from server takahashi_server into takahashi_schema;
CREATE EVENT TRIGGER CREATE OR REPLACE FUNCTION takahashi_abort_any_command()
RETURNS event_trigger
LANGUAGE plpgsql
AS $$
BEGIN
select * from takahashi_table;
END;
$$;
-- 移行の直前で作る。
CREATE EVENT TRIGGER takahashi_eventtrigger ON ddl_command_end
EXECUTE PROCEDURE takahashi_abort_any_command();
配置文件
表演
pg_stat_database
pg_stat_user_tables
pg_statio_user_tables
pg_statio_user_indexes
pg_stat_activity
pg_stat_database
pg_stat_user_tables
pg_statio_user_tables
pg_statio_user_indexes
pg_stat_activity
获得
以下是一种可能的汉语释义:
批处理
type nul > pg_aggregate.sql
type nul > pg_am.sql
type nul > pg_amop.sql
type nul > pg_amproc.sql
type nul > pg_attrdef.sql
type nul > pg_attribute.sql
type nul > pg_authid.sql
type nul > pg_auth_members.sql
type nul > pg_cast.sql
type nul > pg_class.sql
type nul > pg_collation.sql
type nul > pg_constraint.sql
type nul > pg_conversion.sql
type nul > pg_database.sql
type nul > pg_db_role_setting.sql
type nul > pg_default_acl.sql
type nul > pg_depend.sql
type nul > pg_description.sql
type nul > pg_enum.sql
type nul > pg_event_trigger.sql
type nul > pg_extension.sql
type nul > pg_foreign_data_wrapper.sql
type nul > pg_foreign_server.sql
type nul > pg_foreign_table.sql
type nul > pg_index.sql
type nul > pg_inherits.sql
type nul > pg_init_privs.sql
type nul > pg_language.sql
type nul > pg_largeobject.sql
type nul > pg_largeobject_metadata.sql
type nul > pg_namespace.sql
type nul > pg_opclass.sql
type nul > pg_operator.sql
type nul > pg_opfamily.sql
type nul > pg_partitioned_table.sql
type nul > pg_policy.sql
type nul > pg_proc.sql
type nul > pg_publication.sql
type nul > pg_publication_rel.sql
type nul > pg_range.sql
type nul > pg_replication_origin.sql
type nul > pg_rewrite.sql
type nul > pg_seclabel.sql
type nul > pg_sequence.sql
type nul > pg_shdepend.sql
type nul > pg_shdescription.sql
type nul > pg_shseclabel.sql
type nul > pg_statistic.sql
type nul > pg_statistic_ext.sql
type nul > pg_statistic_ext_data.sql
type nul > pg_subscription.sql
type nul > pg_subscription_rel.sql
type nul > pg_tablespace.sql
type nul > pg_transform.sql
type nul > pg_trigger.sql
type nul > pg_ts_config.sql
type nul > pg_ts_config_map.sql
type nul > pg_ts_dict.sql
type nul > pg_ts_parser.sql
type nul > pg_ts_template.sql
type nul > pg_type.sql
type nul > pg_user_mapping.sql
type nul > pg_available_extensions.sql
type nul > pg_available_extension_versions.sql
type nul > pg_backend_memory_contexts.sql
type nul > pg_config.sql
type nul > pg_cursors.sql
type nul > pg_file_settings.sql
type nul > pg_group.sql
type nul > pg_hba_file_rules.sql
type nul > pg_indexes.sql
type nul > pg_locks.sql
type nul > pg_matviews.sql
type nul > pg_policies.sql
type nul > pg_prepared_statements.sql
type nul > pg_prepared_xacts.sql
type nul > pg_publication_tables.sql
type nul > pg_replication_origin_status.sql
type nul > pg_replication_slots.sql
type nul > pg_roles.sql
type nul > pg_rules.sql
type nul > pg_seclabels.sql
type nul > pg_sequences.sql
type nul > pg_settings.sql
type nul > pg_shadow.sql
type nul > pg_shmem_allocations.sql
type nul > pg_stats.sql
type nul > pg_stats_ext.sql
type nul > pg_stats_ext_exprs.sql
type nul > pg_tables.sql
type nul > pg_timezone_abbrevs.sql
type nul > pg_timezone_names.sql
type nul > pg_user.sql
type nul > pg_user_mappings.sql
type nul > pg_views.sql
type nul > pg_pltemplate.sql
echo \o pg_aggregate.sql >> pg_aggregate.sql
echo \o pg_am.sql >> pg_am.sql
echo \o pg_amop.sql >> pg_amop.sql
echo \o pg_amproc.sql >> pg_amproc.sql
echo \o pg_attrdef.sql >> pg_attrdef.sql
echo \o pg_attribute.sql >> pg_attribute.sql
echo \o pg_authid.sql >> pg_authid.sql
echo \o pg_auth_members.sql >> pg_auth_members.sql
echo \o pg_cast.sql >> pg_cast.sql
echo \o pg_class.sql >> pg_class.sql
echo \o pg_collation.sql >> pg_collation.sql
echo \o pg_constraint.sql >> pg_constraint.sql
echo \o pg_conversion.sql >> pg_conversion.sql
echo \o pg_database.sql >> pg_database.sql
echo \o pg_db_role_setting.sql >> pg_db_role_setting.sql
echo \o pg_default_acl.sql >> pg_default_acl.sql
echo \o pg_depend.sql >> pg_depend.sql
echo \o pg_description.sql >> pg_description.sql
echo \o pg_enum.sql >> pg_enum.sql
echo \o pg_event_trigger.sql >> pg_event_trigger.sql
echo \o pg_extension.sql >> pg_extension.sql
echo \o pg_foreign_data_wrapper.sql >> pg_foreign_data_wrapper.sql
echo \o pg_foreign_server.sql >> pg_foreign_server.sql
echo \o pg_foreign_table.sql >> pg_foreign_table.sql
echo \o pg_index.sql >> pg_index.sql
echo \o pg_inherits.sql >> pg_inherits.sql
echo \o pg_init_privs.sql >> pg_init_privs.sql
echo \o pg_language.sql >> pg_language.sql
echo \o pg_largeobject.sql >> pg_largeobject.sql
echo \o pg_largeobject_metadata.sql >> pg_largeobject_metadata.sql
echo \o pg_namespace.sql >> pg_namespace.sql
echo \o pg_opclass.sql >> pg_opclass.sql
echo \o pg_operator.sql >> pg_operator.sql
echo \o pg_opfamily.sql >> pg_opfamily.sql
echo \o pg_partitioned_table.sql >> pg_partitioned_table.sql
echo \o pg_policy.sql >> pg_policy.sql
echo \o pg_proc.sql >> pg_proc.sql
echo \o pg_publication.sql >> pg_publication.sql
echo \o pg_publication_rel.sql >> pg_publication_rel.sql
echo \o pg_range.sql >> pg_range.sql
echo \o pg_replication_origin.sql >> pg_replication_origin.sql
echo \o pg_rewrite.sql >> pg_rewrite.sql
echo \o pg_seclabel.sql >> pg_seclabel.sql
echo \o pg_sequence.sql >> pg_sequence.sql
echo \o pg_shdepend.sql >> pg_shdepend.sql
echo \o pg_shdescription.sql >> pg_shdescription.sql
echo \o pg_shseclabel.sql >> pg_shseclabel.sql
echo \o pg_statistic.sql >> pg_statistic.sql
echo \o pg_statistic_ext.sql >> pg_statistic_ext.sql
echo \o pg_statistic_ext_data.sql >> pg_statistic_ext_data.sql
echo \o pg_subscription.sql >> pg_subscription.sql
echo \o pg_subscription_rel.sql >> pg_subscription_rel.sql
echo \o pg_tablespace.sql >> pg_tablespace.sql
echo \o pg_transform.sql >> pg_transform.sql
echo \o pg_trigger.sql >> pg_trigger.sql
echo \o pg_ts_config.sql >> pg_ts_config.sql
echo \o pg_ts_config_map.sql >> pg_ts_config_map.sql
echo \o pg_ts_dict.sql >> pg_ts_dict.sql
echo \o pg_ts_parser.sql >> pg_ts_parser.sql
echo \o pg_ts_template.sql >> pg_ts_template.sql
echo \o pg_type.sql >> pg_type.sql
echo \o pg_user_mapping.sql >> pg_user_mapping.sql
echo \o pg_available_extensions.sql >> pg_available_extensions.sql
echo \o pg_available_extension_versions.sql >> pg_available_extension_versions.sql
echo \o pg_backend_memory_contexts.sql >> pg_backend_memory_contexts.sql
echo \o pg_config.sql >> pg_config.sql
echo \o pg_cursors.sql >> pg_cursors.sql
echo \o pg_file_settings.sql >> pg_file_settings.sql
echo \o pg_group.sql >> pg_group.sql
echo \o pg_hba_file_rules.sql >> pg_hba_file_rules.sql
echo \o pg_indexes.sql >> pg_indexes.sql
echo \o pg_locks.sql >> pg_locks.sql
echo \o pg_matviews.sql >> pg_matviews.sql
echo \o pg_policies.sql >> pg_policies.sql
echo \o pg_prepared_statements.sql >> pg_prepared_statements.sql
echo \o pg_prepared_xacts.sql >> pg_prepared_xacts.sql
echo \o pg_publication_tables.sql >> pg_publication_tables.sql
echo \o pg_replication_origin_status.sql >> pg_replication_origin_status.sql
echo \o pg_replication_slots.sql >> pg_replication_slots.sql
echo \o pg_roles.sql >> pg_roles.sql
echo \o pg_rules.sql >> pg_rules.sql
echo \o pg_seclabels.sql >> pg_seclabels.sql
echo \o pg_sequences.sql >> pg_sequences.sql
echo \o pg_settings.sql >> pg_settings.sql
echo \o pg_shadow.sql >> pg_shadow.sql
echo \o pg_shmem_allocations.sql >> pg_shmem_allocations.sql
echo \o pg_stats.sql >> pg_stats.sql
echo \o pg_stats_ext.sql >> pg_stats_ext.sql
echo \o pg_stats_ext_exprs.sql >> pg_stats_ext_exprs.sql
echo \o pg_tables.sql >> pg_tables.sql
echo \o pg_timezone_abbrevs.sql >> pg_timezone_abbrevs.sql
echo \o pg_timezone_names.sql >> pg_timezone_names.sql
echo \o pg_user.sql >> pg_user.sql
echo \o pg_user_mappings.sql >> pg_user_mappings.sql
echo \o pg_views.sql >> pg_views.sql
echo \o pg_pltemplate.sql >> pg_pltemplate.sql
echo select * from pg_aggregate; >> pg_aggregate.sql
echo select * from pg_am; >> pg_am.sql
echo select * from pg_amop; >> pg_amop.sql
echo select * from pg_amproc; >> pg_amproc.sql
echo select * from pg_attrdef; >> pg_attrdef.sql
echo select * from pg_attribute; >> pg_attribute.sql
echo select * from pg_authid; >> pg_authid.sql
echo select * from pg_auth_members; >> pg_auth_members.sql
echo select * from pg_cast; >> pg_cast.sql
echo select * from pg_class; >> pg_class.sql
echo select * from pg_collation; >> pg_collation.sql
echo select * from pg_constraint; >> pg_constraint.sql
echo select * from pg_conversion; >> pg_conversion.sql
echo select * from pg_database; >> pg_database.sql
echo select * from pg_db_role_setting; >> pg_db_role_setting.sql
echo select * from pg_default_acl; >> pg_default_acl.sql
echo select * from pg_depend; >> pg_depend.sql
echo select * from pg_description; >> pg_description.sql
echo select * from pg_enum; >> pg_enum.sql
echo select * from pg_event_trigger; >> pg_event_trigger.sql
echo select * from pg_extension; >> pg_extension.sql
echo select * from pg_foreign_data_wrapper; >> pg_foreign_data_wrapper.sql
echo select * from pg_foreign_server; >> pg_foreign_server.sql
echo select * from pg_foreign_table; >> pg_foreign_table.sql
echo select * from pg_index; >> pg_index.sql
echo select * from pg_inherits; >> pg_inherits.sql
echo select * from pg_init_privs; >> pg_init_privs.sql
echo select * from pg_language; >> pg_language.sql
echo select * from pg_largeobject; >> pg_largeobject.sql
echo select * from pg_largeobject_metadata; >> pg_largeobject_metadata.sql
echo select * from pg_namespace; >> pg_namespace.sql
echo select * from pg_opclass; >> pg_opclass.sql
echo select * from pg_operator; >> pg_operator.sql
echo select * from pg_opfamily; >> pg_opfamily.sql
echo select * from pg_partitioned_table; >> pg_partitioned_table.sql
echo select * from pg_policy; >> pg_policy.sql
echo select * from pg_proc; >> pg_proc.sql
echo select * from pg_publication; >> pg_publication.sql
echo select * from pg_publication_rel; >> pg_publication_rel.sql
echo select * from pg_range; >> pg_range.sql
echo select * from pg_replication_origin; >> pg_replication_origin.sql
echo select * from pg_rewrite; >> pg_rewrite.sql
echo select * from pg_seclabel; >> pg_seclabel.sql
echo select * from pg_sequence; >> pg_sequence.sql
echo select * from pg_shdepend; >> pg_shdepend.sql
echo select * from pg_shdescription; >> pg_shdescription.sql
echo select * from pg_shseclabel; >> pg_shseclabel.sql
echo select * from pg_statistic; >> pg_statistic.sql
echo select * from pg_statistic_ext; >> pg_statistic_ext.sql
echo select * from pg_statistic_ext_data; >> pg_statistic_ext_data.sql
echo select * from pg_subscription; >> pg_subscription.sql
echo select * from pg_subscription_rel; >> pg_subscription_rel.sql
echo select * from pg_tablespace; >> pg_tablespace.sql
echo select * from pg_transform; >> pg_transform.sql
echo select * from pg_trigger; >> pg_trigger.sql
echo select * from pg_ts_config; >> pg_ts_config.sql
echo select * from pg_ts_config_map; >> pg_ts_config_map.sql
echo select * from pg_ts_dict; >> pg_ts_dict.sql
echo select * from pg_ts_parser; >> pg_ts_parser.sql
echo select * from pg_ts_template; >> pg_ts_template.sql
echo select * from pg_type; >> pg_type.sql
echo select * from pg_user_mapping; >> pg_user_mapping.sql
echo select * from pg_available_extensions; >> pg_available_extensions.sql
echo select * from pg_available_extension_versions; >> pg_available_extension_versions.sql
echo select * from pg_backend_memory_contexts; >> pg_backend_memory_contexts.sql
echo select * from pg_config; >> pg_config.sql
echo select * from pg_cursors; >> pg_cursors.sql
echo select * from pg_file_settings; >> pg_file_settings.sql
echo select * from pg_group; >> pg_group.sql
echo select * from pg_hba_file_rules; >> pg_hba_file_rules.sql
echo select * from pg_indexes; >> pg_indexes.sql
echo select * from pg_locks; >> pg_locks.sql
echo select * from pg_matviews; >> pg_matviews.sql
echo select * from pg_policies; >> pg_policies.sql
echo select * from pg_prepared_statements; >> pg_prepared_statements.sql
echo select * from pg_prepared_xacts; >> pg_prepared_xacts.sql
echo select * from pg_publication_tables; >> pg_publication_tables.sql
echo select * from pg_replication_origin_status; >> pg_replication_origin_status.sql
echo select * from pg_replication_slots; >> pg_replication_slots.sql
echo select * from pg_roles; >> pg_roles.sql
echo select * from pg_rules; >> pg_rules.sql
echo select * from pg_seclabels; >> pg_seclabels.sql
echo select * from pg_sequences; >> pg_sequences.sql
echo select * from pg_settings; >> pg_settings.sql
echo select * from pg_shadow; >> pg_shadow.sql
echo select * from pg_shmem_allocations; >> pg_shmem_allocations.sql
echo select * from pg_stats; >> pg_stats.sql
echo select * from pg_stats_ext; >> pg_stats_ext.sql
echo select * from pg_stats_ext_exprs; >> pg_stats_ext_exprs.sql
echo select * from pg_tables; >> pg_tables.sql
echo select * from pg_timezone_abbrevs; >> pg_timezone_abbrevs.sql
echo select * from pg_timezone_names; >> pg_timezone_names.sql
echo select * from pg_user; >> pg_user.sql
echo select * from pg_user_mappings; >> pg_user_mappings.sql
echo select * from pg_views; >> pg_views.sql
echo select * from pg_pltemplate; >> pg_pltemplate.sql