FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
postgres_vectorization_test/sql/query.sql at master · citusdata/postgres_vectorization_test · GitHub
citusdata
/
postgres_vectorization_test
Public
Notifications
You must be signed in to change notification settings
Fork
23
Star
335
Code
Issues
1
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
postgres_vectorization_test
/
sql
/
query.sql
Copy path
More file actions
More file actions
Latest commit
History
History
History
20 lines (17 loc) · 678 Bytes
Breadcrumbs
postgres_vectorization_test
/
sql
/
query.sql
Copy path
File metadata and controls
20 lines (17 loc) · 678 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--
--
Test querying cstore_fdw tables.
--
--
Settings to make the result deterministic
SET
datestyle
=
"
ISO, YMD
"
;
--
Query uncompressed data
SELECT
count
(
*
)
FROM
contestant;
SELECT
avg
(rating), stddev_samp(rating)
FROM
contestant;
SELECT
country,
avg
(rating)
FROM
contestant
WHERE
rating
>
2200
GROUP BY
country
ORDER BY
country;
SELECT
*
FROM
contestant
ORDER BY
handle;
--
Query compressed data
SELECT
count
(
*
)
FROM
contestant_compressed;
SELECT
avg
(rating), stddev_samp(rating)
FROM
contestant_compressed;
SELECT
country,
avg
(rating)
FROM
contestant_compressed
WHERE
rating
>
2200
GROUP BY
country
ORDER BY
country;
SELECT
*
FROM
contestant_compressed
ORDER BY
handle;
Back
|
FazBrowse Home
|
New Git URL