feat: initial commit
This commit is contained in:
commit
e214116e40
253 changed files with 17406 additions and 0 deletions
12
queries/views/feeds/headers.psql
Normal file
12
queries/views/feeds/headers.psql
Normal file
|
@ -0,0 +1,12 @@
|
|||
CREATE OR REPLACE VIEW optimized_headers AS
|
||||
SELECT
|
||||
p.path AS resource_path,
|
||||
json_agg(json_build_object('header_name', hr.name, 'header_value', hr.value)) AS headers
|
||||
FROM
|
||||
paths p
|
||||
JOIN
|
||||
paths_header_rules phr ON p.id = phr.paths_id
|
||||
JOIN
|
||||
header_rules hr ON phr.header_rules_id = hr.id
|
||||
GROUP BY
|
||||
p.path;
|
Loading…
Add table
Add a link
Reference in a new issue