mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Revert "Merge pull request #28369 from mylake/reduce-postgresql-adapter-memory-bloat"
This reverts commit192db64452
, reversing changes made to9893955363
. We can't sacrifice correctness for performance.
This commit is contained in:
parent
42f676d10b
commit
29709cd3f3
1 changed files with 2 additions and 2 deletions
|
@ -568,13 +568,13 @@ module ActiveRecord
|
|||
|
||||
if supports_ranges?
|
||||
query = <<-SQL
|
||||
SELECT DISTINCT on (t.typname) t.oid, t.typname, t.typelem, t.typdelim, t.typinput, r.rngsubtype, t.typtype, t.typbasetype
|
||||
SELECT t.oid, t.typname, t.typelem, t.typdelim, t.typinput, r.rngsubtype, t.typtype, t.typbasetype
|
||||
FROM pg_type as t
|
||||
LEFT JOIN pg_range as r ON oid = rngtypid
|
||||
SQL
|
||||
else
|
||||
query = <<-SQL
|
||||
SELECT DISTINCT on (t.typname) t.oid, t.typname, t.typelem, t.typdelim, t.typinput, t.typtype, t.typbasetype
|
||||
SELECT t.oid, t.typname, t.typelem, t.typdelim, t.typinput, t.typtype, t.typbasetype
|
||||
FROM pg_type as t
|
||||
SQL
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue