0

How can i declare non-inline function in postgresql? Only with adding 'out' argument?
Is table functions(returns table) inline?

1
  • Post code of what you're trying Commented Feb 19, 2012 at 3:50

1 Answer 1

1

Inlining is always an optimization1 - this means that "the system" will perform inlining only when it is sure that the result is just the same as without inlining.

So: If you ask "how can I prevent inlining" you should better ask "What I'm doing wrong or why behaves "the system" wrong?" and solve that problem.

1 Whether a successfull optimizazion or not is not the question here.

Sign up to request clarification or add additional context in comments.

2 Comments

Ok, can this function can be inlined? create function Tabli() returns table(Type character varying(15), Cost bigint) AS $$ begin return query select "Type", sum("Cost") from "tblProject" group by "Type"; end; $$ language plpgsql;
Thank for your answer, i have read documentation one more time and understand inline oprimization.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.