« first day (1646 days earlier)      last day (3224 days later) » 

5:35 AM
Good morning
 
good morning
 
 
1 hour later…
7:02 AM
morning
 
7:51 AM
@JamesLupolt No, they didn't say much.
But I found this, from last year: slideshare.net/EnterpriseDB/…
which says that it's going to be processes, not threads. But not through forking.
And this is a report on some of the work, done till now: Parallel Sequential Scan for PostgreSQL 9.5
 
8:46 AM
Morning
 
8:58 AM
@ypercube Shiny things!
 
9:15 AM
@ypercube Next time you go to one of these I'd be glad to tag along
 
@JackDouglas Sure, there may be other meetings: meetup.com/London-PostgreSQL-Meetup-Group
 
@ypercube Thanks, yes, I was reading those earlier but couldn't find any updates. It seems like getting parallel scan is the first step, then hopefully parallel hash & loop join, parallel sorts, etc
You probably need accurate statistics and reliable statistics updates to get even distribution between threads (er, processes) in a parallel query. Does that tend to be much of a problem in Postgres?
 
@JamesLupolt These are updated by vacuum IIRC.
 
10:02 AM
@ypercube thanks, signed up :)
 
10:43 AM
Morning
Sorry to be a bother, but I want to check back whether I understood Joins correctly...
I have some fairly complex query, and upon adding a table to it with a LEFT OUTER JOIN the result count went down....
did I misunderstand about how left outer join works, or should this not happen?
 
@Vogel612 show us the whole query
you probably use the table in the WHERE clause as well.
 
checked back, and diffing against a previous version says no...
 
If you only add a LEFT JOIN table in the FROM, the result should have the same or more rows.
but this is for the FROM of the main query. If you make changes in the FROM of a subqueriy, the results may change either up or down.
 
I'm sligthly oversimplifying here, but.. this "query" is basically a badly written view in form of a postgres-function...
 
You can share the query with pastebin.com
 
10:52 AM
Confidential company code and lots of german.. I'd like to prevent that.
so there will be something reducing the results in another place...
last question: does it make a difference when the query is comma-style joins?
 
Yes
How do you combine LEFT joins with comma style?
 
Or no. Depending on what you mean by difference
 
Hm, yeah, Andriy is right. It probably does not matter.
Where do the table columns appear? Only in the ON clause of this LEFT join and in the SELECT list?
 
from table1, table2, table3, table4
   where table3.table2_fid = table2.pid and table2.table1_fid = table1.pid and table3.status = 1
   and table1.table4_fid = table4.pid
this doesn't work out nicely...
the from clause changed to:
from table1, table2 LEFT OUTER JOIN table5 ON table2.table5_fid = table5.pid, table3, table 4
 
If table5 isn't referenced in WHERE, the row count should not decrease after adding the left join.
 
11:00 AM
okay then something that I joined into there interferes with the loop body somehow..
thanks for the input :)
 
11:41 AM
@swasheck I am now, sorry
 
@AndriyM I think their problem is that they use SUM(DISTINCT ..): dba.stackexchange.com/questions/106239/…
I can think of no reason for using SUM of distinct values.
 
@ypercube Yes, but they kind of have to. They are grouping by a column taken from the child table while aggregating results taking from the parent table.
 
Ah, I see the data now.
 
@ypercube Neither can I.
 
11:57 AM
you guys just don't have imagination
 
@Lamak Enlighten us then :)
 
I never said I had imagination either
 
Ah, you just meant to remind us, okay.
 
exactly, that would be my role for the moment
 
a very imaginative role
 
12:03 PM
doesn't sounds like me
 
12:59 PM
Anyone here have any knowledge of Azure?
Well...Azure SQL Database
sys.dm_os_sys_info seems to be missing, but I cannot see anything saying it should be
 
@MarkSinkinson not really. Google says that that view applies to Azure SQL Data Warehouse Public Preview
 
@Lamak Yeah, I think that's what we're running... 13.0.200
 
that's as far as my knowledge about it goes :-/
 
 
1 hour later…
2:31 PM
Nice to know that SSMS is now regular program which updates separately. blogs.msdn.com/b/sqlreleaseservices/archive/2015/06/24/…
 
2:44 PM
 
JNK
@swasheck saw a great gif of that too
A lady running with a busted nose and spitting out blood followed by a dude who gets tapped on the chest and falls down screaming
 
nice
 
JNK
some googling just now tells me the lady was actually playing rugby though
stupid internet, full of lies
 
@JNK oh that girl? yeah.
Georgia Page
 
As someone who played hockey for almost 2 decades, I find that picture to be one of my favorites
 
2:54 PM
@KrisGruttemeyer in fairness, each of those injuries are pivotal to those positions' performances ... except the hockey puck to the face. everyone knows that hockey players don't use their heads.
3
 
@swasheck I'd venture to say that all 3 of those would be pivotal for any hockey player also. Hands and feet/toes are a big part.
 
absolutely. but that's not where the hockey player in question too his injury.
:)
 
3:18 PM
@KrisGruttemeyer And, may I present the Australian Football League:
 
Oh sweet lord. YUCK
 
Sorry to be that guy ... couldn't resist.
 
My knee hurts all of a sudden
:)
 
footy is awesome
if you like wanton violence and brutality
 
You mean you don't?
 
3:21 PM
i'm 'merican.
 
If I remember rightly he carried on playing.
 
natch
 
3:41 PM
Went back to playing the following week.
Daryn Cresswell (born 22 May 1971) is a former Australian rules footballer who played for the Sydney Swans in the Australian Football League, and the former senior coach of the Tasmanian Devils Football Club that played in the Victorian Football League. == Playing career == Cresswell started his football with Glenorchy in the Tasmanian Football League. He also briefly played for Geelong Reserves in the Victorian Football League, Daryn then returned to Tasmania to play with North Hobart in the TFL the following year. Daryn was then drafted to the Sydney Swans in the mid-season draft. Cress...
 
@KrisGruttemeyer this make not want to click that link
 
uhhhhhhh
hay guyz
and galz
NYSE down
UAL went down
WSJ down
 
Oh noes
 
coincidence?
 
Nah
It's probably a 2014 SP1 CU1 bug
I don't think anyone here trades equities so it's actually gone unnoticed
 
4:00 PM
heh.
 
It's also 5pm, so hometime :)
 
we're going to get hammered when NYSE resumes trading
 
I'm aware of that. I'm just unaware of what are the options. What are some of the most common naming schemes. — RexGrammer 4 mins ago
 
4:16 PM
why do people ask for opinions? c'mon folks. i need your opinion on this.
 
@ConcernedOfTunbridgeWells There were some other interesting stuff in that category (awesome)
Like "logical decoding"
which could be used for various things, like auditing or replication.
Even replication to a different dbms !
 
Someone flagged "rhymes with trucking tanker" as offensive. smh
If anyone thinks that just taught someone with sensitive ears a new swear word...
@swasheck happened here too dba.stackexchange.com/q/106063/1186
 
yeah. how's it going, @AaronBertrand? been a while.
 
Yeah been busy
 
better than not being busy.
 
4:33 PM
@swasheck unless you are rich
 
you'd still like to be busy doing something fun, right?
 
right
I wouldn't be lazy at all
 
someone's using an undocumented trace flag on the NYSE db servers
 
Is it 6666?
 
yeah. other exchanges are fine. recalculating the major indices is going to be a big problem since NYSE is used for composite calcs and like i said earlier, we're going to get hammered when trading resumes
 
4:57 PM
then there's this
Wonder if tomorrow is going to be bad for Wall Street.... we can only hope.
 
JNK
yikes
 
JNK
double-yikes
 
@swasheck oh wow, I thought that was a tweet reacting to the problem today and expecting bad performance of stocks tomorrow. That was actually from yesterday - seems to call NYSE's "internal technical issue" stance into question.
 
indeed
 
JNK
5:05 PM
WSJ having issues too
and United air
 
Yeah seems too coincidental (though it could be that they're all in the same data center)
 
it's a tough call, though. could really be coincidental. i believed it was up until that anon tweet was found
 
5:46 PM
"Solution" and "WITH(NOLOCK)" should not be married in the same sentence unless it's a negative correlation. — ypercube 55 mins ago
^^^ Or, put another way, "Solution" and "WITH(NOLOCK)" should not be married in the same sentence, unless you mean to say they should not be married in the same sentence.
 
tldr: "don't use nolock"
 
 
2 hours later…
8:14 PM
virtualization is awesome until it isnt
 
 
1 hour later…
9:19 PM
@JamesLupolt do you use mirroring much?
 
@swasheck Did you survive the NYSE coming back online?
@swasheck Yes, it's our DR tech for anything pre SQL 2012.
 
funny you should ask
@JamesLupolt my primary has a witness connection description of DISCONNECTED
my secondary has a connection description of CONNECTED
all statuses look good, though
(synchronized, etc)
should i be alarmed?
 
@swasheck Is there a failed login from your witness?
But to be honest, I have no idea. I don't think I've ever used mirroring with a witness or automatic failover.
 
@JamesLupolt no
hm. thanks.
 
@MikeFal how were we not linkedin'd already? :)
 
9:26 PM
@swasheck If you've got mirroring_witness_state = DISCONNECTED in sys.database_mirroring, it sounds like that's definitely not normal.
 
yeah
i'm not exactly sure what to do at this point, though
 
Can all the servers connect to each other's endpoints with telnet or something similar?
There should be a log message written somewhere that shows why it transitioned to disconnected?
Remus' answer here:
2
Q: mirroring state of the database went to disconnected state in SQL Server 2008

user186246I have 4 databases mirrored using High Protection mode without witness server between two servers(principal and mirror) that are in the same domain. Manual failover worked fine for several days. But later somehow the IP of the principal server was changed in the DNS, then onwards the mirror state...

 
right. tried that
hm. i'll check default trace
because errorlog is insane
> DBM: Synchronizing Principal -> DBM: Synchronized Principal without Witness
 
What happens if you try setting the witness again?
alter database MyDBName set witness = 'TCP://witness.ourdomain.com:5022'; or whatever
It seems that most of the useful material on troubleshooting disconnected witnesses is written by Remus
I've wondered how much of a correlation there is between which features he writes about and which ones he coded
 
9:43 PM
that would be interesting
"already serving as witness"
 
does it make any difference if you restart the witness endpoint? ALTER ENDPOINT <Endpoint Name> STATE=STOPPED; ALTER ENDPOINT <Endpoint Name> STATE=STARTED
 
odd. sys.endpoints only has mirroring_endpoint
should i have a witness_endpoint?
 
I think that's just an arbitrary name
 
ok
so is the endpoint the partner or the witness?
 
Oh
Each server has an endpoint
Including the partners and the witness
 
9:50 PM
yeah
so there's no witness endpoint. this is strange.
but it's configured in the DB?
 
Oh. On the witness there are no endpoints at all?
 
anyway ... it's lync so IDGAF, honestly
 
If it's Lync, is it something that was configured by a sysadmin who didn't know SQL Server?
We had a funny problem with our Lync server recently
 
stupid.
live to die another day
 
There is some stored proc that generates a 'synthetic conversation' for monitoring purposes every minute
It was causing a sort that spilled to TempDB
This was doing more I/O than most of the rest of the SQL Servers combined
So we added an index to support the sort and eliminated most of the I/O on the whole array
 
9:54 PM
nice
 
Can you access imgur at work?
 
no
 
Or Dropbox?
Or any imaging services?
 
box.com
that's nuts
 
yeah
I liked that pages/sec couldn't even be displayed on the same scale afterwards
 
10:02 PM
i'm confused by the drop in network activity, though
 
I am bit too
I think it must be counting the iSCSI adapter activity
I think that info comes from DBCC SQLPERF('NETSTATS')
 
that was my suspicion, but you'd need to query the PerformanceAnalysisData tables
it does
well, i've seen that run
but they also collect data via wmi
 
Which I would have thought excluded disk I/O that would come from the Windows kernel
 
they collect both ... but what is used for the UI display would require a fun trace
 
10:16 PM
Did you end up doing anything with that duplicate stats script I sent a while ago?
 
yes.
i went on vacation.
 
haha
 
that's not entirely fair. i did some messing around with index_col() and cross apply
 
@swasheck I should probably look at it more soon. It doesn't support filtered stats and takes a while to run on a SAP instance that has 40k tables and around 100k duplicate stats objects. : (
 
i'll see if i can dredge up the work that i did
 
10:32 PM
i think i have to start publishing stuff like this
evne if it's not that great
otherwise i forget about it or lose, and end up having to write it again
 

« first day (1646 days earlier)      last day (3224 days later) »