« first day (3556 days earlier)      last day (1320 days later) » 

6:22 AM
Good Morning
 
6:49 AM
Hmmm
 
 
6 hours later…
12:26 PM
this feels like an embarrassingly n00bie question but... if i want to pg_dump schema foo from my database, how do i get foo into the search_path so it'll actually dump?
do i have to add it to .psqlrc? or actually change the default search_path on the service? it feels like there should be a way to do it for the pg_dump command only - as if it were a session setting in a regular psql session
throwback to this i guess dba.stackexchange.com/q/240199/68127
literally that actually
11
A: How to set a search_path default on a psql cmd execution?

WhimusicalI finally found it, its not a psql option, but it fits a oneliner: PGOPTIONS=--search_path=myschema psql -h myHost -U myUser -dmyDb -p myPort. If anybody improves it with a working version call for both unix and windows ill approve

question asked, question answered
banana dance dot gif
 
 
1 hour later…
1:48 PM
They say that if you stare long enough into The Heap™, the answer will eventually stare back at you.
8
 
Good morning
 
Is "in SQL Server" implied there? Because I think materialised views are maintained differently in PostgreSQL, in particular (vs SQL Server at least).
 
2:32 PM
Postgres & Oracle materialized views are just cached queries CHANGE MY... wait, that's what the documenation says
 
 
1 hour later…
3:35 PM
36
Q: How do you create a view with SNAPSHOT_MATERIALIZATION in SQL Server 2017?

Brent OzarSQL Server 2017 has a couple new stored procedures: sp_refresh_single_snapshot_view – input param for @view_name nvarchar(261), @rgCode int sp_refresh_snapshot_views – input param for @rgCode int And new entries in sys.messages: 10149 – Index that has SNAPSHOT_MATERIALIZATION cannot be crea...

still no progress on this
 
3:48 PM
wow my terrible meme has sent me down a rabbit hole of SQL Server, Sybase, DB2, and Oracle docs.
 
2020 DBA Moderator Election nomination period begins on Oct 12 at 20:00
4
 
 
1 hour later…
4:59 PM
Oh that's been a while
I nominate @ypercubeᵀᴹ
 
5:29 PM
7
A: Very hot network questions found

Yaakov EllisThe underlying issue here has (hopefully) been fixed. Extra post history entries will be cleaned in the coming days. The cause was a race condition on the hot network questions global cache: We cache Hot Network Questions (HNQ) across the entire network. The cache expires every 15 minutes. Every...

Good to see the world continuing to struggle with solved problems over and over again based on incomplete information on Stack Overflow
> There is a chance that this will not completely eliminate the issue under high load, and we may need to add an UPDLOCK hint to the query as well. Decided to go incrementally with this, and will add the lock later if needed.
🤦‍♂️
 
 
2 hours later…
7:27 PM
@PeterVandivier well my answer here seems partially incorrect. if someone is moved to me on it, please do
create schema foo;
create table foo.foo (i int);
given the above, i was expecting pg_dump --schema=foo to return nothing (using a different superuser account than the one i created the schema with), but i'm still getting it :-/
 
7:48 PM
@TomV I nominate @PaulWhite
 

« first day (3556 days earlier)      last day (1320 days later) »