« first day (3828 days earlier)      last day (1041 days later) » 

6:22 AM
Morning
 
7:07 AM
Morning
 
 
1 hour later…
8:20 AM
Morning
 
 
6 hours later…
2:34 PM
0
Q: PostgreSQL 'server closed the connection unexpectedly' when using the hostname (Azure VM)

YusufDI have a Postgres instance running on an Azure VM, which is inside an Azure Virtual Network, and the VM has a hostname. Connecting with PostgreSQL using the IP address works, but when I try to connect using the hostname it gives this error: psql: server closed the connection unexpectedly ...

0
Q: How to access Postgresql with the hostname of azure VM?

YusufDMy azure VM is inside a vnet and has the hostname X.postgres.database.com. I tried to have a connection with the postgres which is running inside the VM using the hostname but it fails. Trying to connect with the IP address works. And I also can ping to the VM using the hostname, since I have and...

IMHO These two questions could be merged.
 
0
Q: postgresql using hostname instead of IP address azure vm?

YusufDMy azure VM is inside a vnet and has the hostname X.postgres.database.com. I tried to have a connection with the postgres which is running inside the VM using the hostname but it fails. Trying to connect with the IP address works. And I also can ping to the VM using the hostname, since I have and...

That's on SO
 
The question so nice they asked it thrice.
 
There is also stackoverflow.com/q/67982207 but at least that was asked two weeks ago with no answers
 
 
1 hour later…
4:01 PM
morning
just a general FYI folks; while this isn't a particularly big problem on our site, referring to it as a "forum" gives folks the wrong idea about how we operate. Refer to dba.se as as "community" instead of a "forum".
4
142
Q: Are Stack Exchange sites forums?

Naftali aka NealI was under the impression that Stack Exchange sites were forums, or forum-like objects. If they are not forums: Why aren't they? What defines a forum?

 
It's a series of tubes
 
4 u
 
I believe the correct term is gymnastics group. Says so right there on the label
4
 
For chat, yes
 
Are you implying there's something larger than chat available here?
 
4:14 PM
The main site isn't chat, for the most part
Though it sometimes tries to be
 
Putting the cart before the kangaroo there
 
4:27 PM
@PaulWhite Maybe if we try hard enough...
Don't give up on your dreams, etc.
 
I'm in it for the long haul
 
We have a local expert on that
 
Seems like a US political joke of some kind, in visual form
 
Kind of, except that's literally how Kennedy talks
Today is going to be a timezone data analysis extravaganza.
I have times in different time zones attached to the same entity, and going to need to figure out which time zone to choose as the one for reporting the entity. Plus some stuff is time of day compared across facilities where the timezone needs to be discarded (but they'll need to be conformed to some chosen timezone first). Can't win.
 
5:35 PM
@JoshDarnell You're not getting an up vote for this dba.stackexchange.com/a/294945 on general principle
 
@PaulWhite Haha I think that's completely fair.
 
I do wonder what the purpose of that default is
 
I did try to convey the idea that "this is technically possible, but is probably a bad idea."
 
Concurrency could be an issue too
Leaving aside the scalar function for a moment
Anyway I don't suppose the OP will ever describe the real problem so it's probably moot
I'll leave Erik's contact details in a comment for when they need it
Assuming he survived that plane ride
 
@PaulWhite That crossed my mind (briefly) but I thought it was sort of covered by "if you're doing a lot of inserts here, this is a bad idea." I wasn't really thinking about concurrency with unrelated reads though.
There are really a lot of issues with putting a scalar function in a constraint.
@PaulWhite They just accepted @HannahVernon's answer!
 
5:45 PM
yeah I saw
predictable
should have migrated it to SO
@JoshDarnell It's surprisingly tricky to get inserts based on max+1 to work with a unique index on the target
assuming many concurrent inserts
 
@PaulWhite I would be willing to bet they are trying to construct a queue of some sort.
 
well it's not so hard to get it to work, it's trickier to do it well
@HannahVernon probably
we'll never know
 
thanks to a certain someone providing an answer no doubt.
 
they were always going to accept the first answer that 'works'
there'll be a next question of course
 
The sequence is probably the closest thing to the default they wanted, though. From just the limited example they've shown.
 
5:50 PM
I guess so. As I say, I can't really fathom it at all
 
Next question: How do I make the Priority increment per Task Name
 
Perhaps they've invented something the world has been lakhing for a long time
Could be genius
@billinkc ha ha v likely
I shouldn't be too hard on the OP. Probably an intern who's been told to do some thing, not why.
 
I was contemplating constructing an INSTEAD OF trigger. But, why.
Thank you, that is interesting. I wasn't even aware of the existence of sequences in SQL Server. Gaps are not an issue for me and I do not intend to insert the values manually so I should be safe about the error you warned about. — Pawel 4 mins ago
famous last words
 
It can be difficult to get the right default-like behaviour for inserts omitting the column
 
I'm going to post an answer that uses Service Broker.
4
 
5:57 PM
Reading that question and I'm getting PTSD from having to use a scalar function to do XML processing because XML functions are not allowed in persisted computed columns...
 
@CadeRoux Yeah that is lovely
Selective xml indexes kinda resolved that didn't they?
 
SEQUENCEs are great. Solve many problems.
@PaulWhite Aren't they not available in SQL 2012?
 
I'm not curious enough to check
For such a vintage version
 
It would be hard to because the documentation is not very kind
"Applies to: yesSQL Server (all supported versions) "
 
Brutal
 
6:00 PM
We are likely to drop support for 2012 soon, though, so that's nice.
All the little workarounds like that can then be refactored out.
 
Funny because SeXI indexes seem quite modern still
Goes to show the last time xml got a new feature perhaps
 
There might be a separate reason I didn't use it here. It's not in our actual product in any case. It's in the test harness database's tables. Lots of XML expecteds and actuals and needing to extract things like whether the expected and actual hashes match and then if there is a collision, checking that the XML does actually fully match.
And that status is in a persisted column, I think.
 
> The requirement is that by default newest tasks gets the lowest priority (highest int value). After the task is in table it then can be prioritised/deprioritised for example priority value swapped with any other task in the table.
I think I'm just going to READPAST that question
4
 
Better use some halloween protection
 
6:21 PM
Only once a year
 
 
2 hours later…
8:48 PM
@HannahVernon Keeping cool in your part of Canada?
 
9:13 PM
(the pacific northwest of the US is under a heat shield and apparently it extends into part of CA. Prior to the past 3 days, Seattle had recorded 3 total days of 105 degrees over the past hundred years and they have equaled that in consecutive days)
 
9:28 PM
@billinkc yes, thanks. It's actually beautiful here today. The further west you go from here the hotter it gets until you hit the ocean, apparently. We're expecting it to get hotter over the next week or so, but for now it's super enjoyable here. Right now it's 26°C (79°F). There is a nice little breeze and it's only about 50% humidity.
@billinkc how's the Chicken Frying Capital of the Free World?
 

« first day (3828 days earlier)      last day (1041 days later) »