Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Specifically for PostgreSQL version 12
2
votes
1
answer
791
views
Stop rollback of anonymous DO code block?
I'm executing some code through this anonymous DO code feature. I am observing that whenever it fails, all changes made are discarded and the database is rolled back to a state as it was before it beg …
7
votes
0
answers
1k
views
When does the PostgreSQL 12 CTE materialized option provide an optimization advantage?
I have been reading about PostgreSQL's new CTE feature - the MATERIALIZED or NOT MATERIALIZED keyword - which can offer additional optimization opportunities under certain circumstances, provided that …
0
votes
1
answer
150
views
Reducing CREATE TABLE overhead?
I have a simple SQL query: SELECT * FROM table; - a simple sequential scan - which takes me 10s.
When I add CREATE TABLE AS (CTAS syntax) to it, i.e. my query is CREATE TABLE db_test AS SELECT * FROM …
0
votes
0
answers
1k
views
Dynamically creating a new table from a given table name without return type using a Postgre...
I want to try using PostgreSQL to create a function which given a table name, an existing column name, and a new column name, it selects all data from this table, applies a function to this column nam …
3
votes
2
answers
3k
views
Is PostgreSQL function parallel safety intended for functions which update data?
I am having some trouble understanding function parallel safety. I can understand what it does - which is to specify whether the function will be executed by the parallel master node or whether the qu …
0
votes
1
answer
52
views
Enforcing lowest transaction isolation level across concurrent sessions?
I am trying to learn transactions better in PostgreSQL and came across this observation.
I have a situation where I am creating multiple tables using an SQL statement across multiple sessions. I am u …