postgresql - Select from table identified by OID -


is possible select table know oid of? like

select * 123456::regclass 

i understand can in function, constructing dynamic query, seems strange cannot directly -- assume postgresql translates table names oids moment starts analyzing query, why cannot save trouble?

no.

oid global counter can wrap around. meaning there can multiple tables containing objects of same oid. if there hack around, error prone in least


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -