Skip to Main Content
  • Questions
  • PRAGMA RESTRICT_REFERENCES - Deprecatedish?

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, Jon.

Asked: April 25, 2017 - 2:03 pm UTC

Last updated: October 01, 2018 - 2:34 am UTC

Version: 12.2

Viewed 1000+ times

You Asked

Hi guys,

In the 12.2 PL/SQL Language Reference it says that
PRAGMA RESTRICT_REFERENCES
is deprecated.
http://docs.oracle.com/database/122/LNPLS/RESTRICT_REFERENCES-pragma.htm#LNPLS01339

In the 12.2 Data Cartridge Developers Guide they state that I "must" restrict the references so the SQL engine knows the purity level of the functions.
http://docs.oracle.com/database/122/ADDCI/implementing-data-cartridges-in-PL-SQL.htm#ADDCI4321

So is it safe to say I should be using RESTRICT_REFERENCES with data cartridges but not elsewhere?

Thanks for your help!

and Connor said...

My *understanding* is that you should not be using it *anywhere*, but I'll file a request with the doc team, and follow up whether its a doc bug or a genuine requirement for the cartridges, and update this when I get some more info.

Rating

  (1 rating)

Is this answer out of date? If it is, please let us know via a Comment

Comments

Review request

A reader, April 27, 2018 - 3:23 pm UTC

The information is a bit outdated and you didn't inform us about the result of the followup.
Connor McDonald
May 01, 2018 - 1:39 am UTC

Apologies - I should updated this post.

The 18c documentation has been updated to remove the need/reference to the pragma.

https://docs.oracle.com/en/database/oracle/oracle-database/18/addci/implementing-data-cartridges-in-PL-SQL.html

More to Explore

PL/SQL demos

Check out more PL/SQL tutorials on our LiveSQL tool.

PL/SQL docs

PL/SQL reference manual from the Oracle documentation library