rails 4.2: don't fetch all the pg_types
rails 4.2: don't fetch all the pg_types

the old query has
 "OR t.typinput = 'array_in(cstring,oid,integer)'::regprocedure
  OR t.typelem != 0"

which ends up fetching all of the other pg_types and makes
establishing new connections sometimes slow

Change-Id: I6853acd2289a48727e5f4c2403540020d4d00d77
Reviewed-on: https://gerrit.instructure.com/90810
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <c4fe2b1d90ef8f2548c8aeabfa633434316f0305@instructure.com>
Product-Review: James Williams  <3a5f4ed991dbfa5c9ef76ad729d240ca12f62180@instructure.com>
QA-Review: James Williams  <3a5f4ed991dbfa5c9ef76ad729d240ca12f62180@instructure.com>

SwinburneOnline/canvas-lms,HotChalk/canvas-lms,HotChalk/canvas-lms,grahamb/canvas-lms,djbender/canvas-lms,venturehive/canvas-lms,sfu/canvas-lms,sfu/canvas-lms,sfu/canvas-lms,djbender/canvas-lms,SwinburneOnline/canvas-lms,venturehive/canvas-lms,sfu/canvas-lms,venturehive/canvas-lms,HotChalk/canvas-lms,venturehive/canvas-lms,sfu/canvas-lms,djbender/canvas-lms,grahamb/canvas-lms,SwinburneOnline/canvas-lms,HotChalk/canvas-lms,sfu/canvas-lms,grahamb/canvas-lms,grahamb/canvas-lms,grahamb/canvas-lms,SwinburneOnline/canvas-lms,sfu/canvas-lms,djbender/canvas-lms