From d3b372e92d4efdd6f63da35996f04ff009c932b5 Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Fri, 21 Jan 2011 12:57:49 -0500 Subject: [PATCH] Emphasize where OVER needs to be when using a window function. Jeff Turner --- doc/src/sgml/advanced.sgml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/src/sgml/advanced.sgml b/doc/src/sgml/advanced.sgml index 784b40a3621..9cb717313a8 100644 --- a/doc/src/sgml/advanced.sgml +++ b/doc/src/sgml/advanced.sgml @@ -371,7 +371,7 @@ SELECT depname, empno, salary, avg(salary) OVER (PARTITION BY depname) FROM emps A window function call always contains an OVER clause - following the window function's name and argument(s). This is what + directly following the window function's name and argument(s). This is what syntactically distinguishes it from a regular function or aggregate function. The OVER clause determines exactly how the rows of the query are split up for processing by the window function.