0

I have the following table in Postgesql:

CREATE TABLE customers
(
  customerid integer NOT NULL,
  customerid2 text NOT NULL,
  ....
)

How can I check if customerid2 is used as FK in other tables? suppose I will drop this column, before it execute the actual drop - it checks who uses it. How do I perform that check manualy?

SMW
  • 339
  • 1
  • 4
  • 12
  • 1
    http://stackoverflow.com/search?q=[postgresql]+find+foreign+keys –  Oct 11 '15 at 09:24
  • Didn't find anything that works there. http://stackoverflow.com/questions/18383810/find-referenced-fields-of-foreign-key-constraint this was promiseing but it doesn't work. – SMW Oct 11 '15 at 11:49

0 Answers0