0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 12:53:30 +08:00
discourse/config
Alan Guo Xiang Tan af075e5fb8
FIX: Load PostgreSQL structures in a single transaction (#42012)
When Active Record migrates a brand-new Discourse database, Discourse
  invokes `DatabaseTasks.migrate`, which can initialize the database from
  `db/structure.sql`. That file clears the session `search_path` and
  restores it near the end. With PgBouncer transaction pooling, `psql`'s
  autocommit statements can run on different PostgreSQL backends, leaving
  one pooled backend with an empty search path and causing later
  migrations or seeds to fail intermittently with "no schema has been
  selected" or missing-relation errors.

  This commit configures PostgreSQL structure loads with
  `--single-transaction`, using Active Record's existing structure-loader
  flags to keep the restore on one PgBouncer backend and roll it back
  atomically on error.
2026-07-27 09:51:34 +08:00
..
environments DEV: Enable Rails/FilePath rubocop rule (#40097) 2026-05-19 19:07:54 +02:00
imagemagick SECURITY: Harden imagemagick execution 2026-06-30 16:10:52 +02:00
initializers FIX: Load PostgreSQL structures in a single transaction (#42012) 2026-07-27 09:51:34 +08:00
locales FEATURE: Log staff actions for admin onboarding panel steps (#42032) 2026-07-24 14:43:01 -07:00
application.rb DEV: Retroactive review and refactor of custom emoji bulk import/export (#41860) 2026-07-22 10:06:54 +10:00
boot.rb DEV: Change test formatters (#39427) 2026-04-22 12:26:07 +02:00
cdn.yml.sample
database.yml DEV: Support per-unicorn-worker DB variable overrides (#35615) 2025-10-27 13:45:27 +08:00
deploy.rb.sample
dev_defaults.yml DEV: Add admin_dashboard:populate rake task to seed Site Traffic (#39775) 2026-05-06 12:07:47 +08:00
discourse.config.sample
discourse.pill.sample DEV: Move puma to test-only dependency (#38652) 2026-03-18 05:23:12 +08:00
discourse_defaults.conf FEATURE: Add opt-in IAM role assumption for S3 operations (#39174) 2026-04-15 04:29:50 +08:00
environment.rb DEV: Add env var for local email port (#36900) 2025-12-31 14:25:02 +10:00
logrotate.conf
multisite.yml.production-sample
nginx.sample.conf DEV: remove x-real-ip references (#41371) 2026-07-03 15:53:21 -04:00
official_plugins.json DEV: Remove deprecated themes/plugins from the list (#41948) 2026-07-23 13:06:14 +02:00
pitchfork.conf.rb DEV: Rename EmberCli to EmberAssets (#40938) 2026-06-16 12:56:56 +02:00
projections.json DEV: Prepare for rename of app/assets/javascripts/ -> frontend/ 2025-10-22 16:24:11 +01:00
routes.rb FEATURE: Log staff actions for admin onboarding panel steps (#42032) 2026-07-24 14:43:01 -07:00
sidekiq.yml
site_settings.yml FIX: Scope duplicate topic title check to what the user can see (#41871) 2026-07-24 15:35:35 +02:00
spring.rb
thin.yml.sample
unicorn_launcher DEV: Enable Pitchfork by default (#37679) 2026-02-11 11:52:39 +01:00