News for hackers. Stuff that matters.
Re:Nine ways to shoot yourself in the foot with PostgreSQL by hannofcart on Tuesday April 25, 2023 @05:10AM (#35698135)
Googling? That's so passe.

I just enter my vague question into this AI chat thingy and I try the first thing that it tells me on my production server.

Has worked fine for me so far. What could possibly go wrong?

Re:Nine ways to shoot yourself in the foot with PostgreSQL by duckmysick on Tuesday April 25, 2023 @07:16AM (#35698865)
You can ask this AI chat thingy if it's a good idea to experiment on your production server. Maybe it will suggest something else.
Re:Nine ways to shoot yourself in the foot with PostgreSQL by throw99998888 on Tuesday April 25, 2023 @11:27AM (#35701820)
"I'll copy paste this snippet from a 2013 StackOverflow thread instead."

"Let me just install this 2MB js dependency real quick. I don't know anything about its author nor if its maintained at all, but it will prevent me from writing 10 lines of vainilla js."

ChatGPT is a vast improvement from this.

Re:Nine ways to shoot yourself in the foot with PostgreSQL by bhawks on Tuesday April 25, 2023 @02:26PM (#35704614)
Wow that's old school.

Here we have an agent integrated into langchain that executes the command directly on the server. If there are any errors it uses ai to debug and fix them too.

!/s see https://python.langchain.com/en/latest/modules/agents/toolki...

Re:Nine ways to shoot yourself in the foot with PostgreSQL by dror on Wednesday April 26, 2023 @12:25AM (#35709624)
Agent, shmagent.

CREATE EXTENSION pggpt;

and you're done. The AI watches your db and adjusts the params on the fly as needed. We're joking, but I give it less than 12 months before there'll be something like this.