By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,775 Members | 1,740 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,775 IT Pros & Developers. It's quick & easy.

Views and Limits

P: n/a
Hi,

I am using a view that has also a LIMII 1000 in it. As it seems when I
run a query with a WHERE then the WHERE is only applied to the subset of
1000 records. So although the query my produce 3000 records, I may get
only a few hundred back.

Is there a way to get change that i.e. that the VIEW places a limit on
the final result?

Thanks
Alex

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Nov 11 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Alex <al**@meerkatsoft.com> writes:
Is there a way to get change that i.e. that the VIEW places a limit on
the final result?


How would that possibly make any sense? A view is supposed to be a
self-contained, logically consistent object ... not something that
exerts magical action-at-a-distance powers upon queries that reference
it. As an example, would you still expect this restriction to work when
the view was used in a join, SELECT DISTINCT, or aggregate query? If
so, just what is getting limited?

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 11 '05 #2

P: n/a
>
How would that possibly make any sense? A view is supposed to be a
self-contained, logically consistent object ... not something that
exerts magical action-at-a-distance powers upon queries that reference
it.


Oh, I see, you just don't love us enough to give us magical powers to our
views. I bet you're saving that feature for yourself, huh?

:)

Jon
---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ma*******@postgresql.org so that your
message can get through to the mailing list cleanly

Nov 11 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.