Neon

N

Neon

The official Neon Database Discord

Join

🙏|feedback

❓|questions-and-answers

🐘|postgres

grumpy-cyan
grumpy-cyan2/14/2025

Managing Neon Branch Deletion After PR Merge/Close

Hey Team, I'm using the Vercel integration with Neon for preview deployments, and it's working well. However, I noticed that when we merge or close a PR, the corresponding preview branch in Neon isn't automatically deleted. Is there a way to automate this cleanup process? Any insights or best practices would be appreciated....
genetic-orange
genetic-orange2/14/2025

How are the computing resources distributed among all my projects?

How are the computing resources distributed among all my projects? If I upgrade to a paid plan, can I distribute the computing resources, i.e. vCPU and RAM, or is it done automatically or, better yet, does it assign the same capacity to each project?
conscious-sapphire
conscious-sapphire2/13/2025

Debiting funds

Good afternoon. Tell me, I'm on the free tariff, but I've been charged $19 for not using anything.
No description
future-harlequin
future-harlequin2/13/2025

Partnership Invitation for HackByte 3.0

Hey Team, I'm looking to discuss a potential partnership with Neon for HackByte, Central India's biggest Hackathon in Jabalpur, India. We're expecting over 500 developers and tech enthusiasts from across country, and we believe Neon could be a fantastic partner for our hackathon. Could someone point me to the best person to contact for partnership opportunities? I'd really appreciate it! Thanks in advance for your help!...
graceful-beige
graceful-beige2/12/2025

Rust diesel R2D2 runtime error prepared statement

I'm switching from non-pooled to pooled and using R2D2 in diesel. I don't get any compile time errors but I do get repeating errors in the log of ERROR r2d2: unnamed prepared statement does not exist. I see some others on Reddit having the same problem and adding some name/value pair to the connection string but saying it is Host specific. How do I fix this on Neon for my Rust/Diesel/R2D2 async pooled connection?
funny-blue
funny-blue2/12/2025

Local Next.js with Prisma/Postres Security

How can I run a local Next.js Dev server against NEON db - without exposing my credential - as this local dev server runs on HTTP (and not HTTPS)? I was reading https://neon.tech/guides/local-development-with-neon but it doesn't go into this aspect explicitly. Thank you!...
itchy-amethyst
itchy-amethyst2/12/2025

The neon dashboard is showing limit exceeded despite using only 30mb

I am facing this issue of storage limit exceeded. I don't have any data and just 5 empty tables with less than 6 columns each. Please help with this issue.
No description
ratty-blush
ratty-blush2/11/2025

Preventing production data from scheduling application workflows on preview branch

Hey all! I'm currently building an application which includes a task scheduler. The idea is that I have a scheduler running on a fixed interval which schedules tasks based on the user-defined configuration in my database. However, when branching out from main the configuration data is actually copied from the production database. This would mean that if i have the same scheduler running in my preview environment, this would essentially start scheduling workflows for my users (which would in turn fail due to missing credentials from my KV storage)....
harsh-harlequin
harsh-harlequin2/11/2025

Issues with Data Migration

Hi, I'm having issues with migrating my neon database. I have a Nextjs app thats hosted on Vercel and Ive been following this documentation https://neon.tech/docs/import/migrate-from-neon. Ive been running the command pg_dump -Fc -v -d <old_neon_database_connection_string> | pg_restore -v -d <new_neon_database_connection_string> however the last couple of lines return this. My datbase names are the same, however when refreshing my table in my new database I dont see the data reflected ``` pg_restore: warning: invalid creation date in header pg_restore: connecting to database for restore pg_restore: implied data-only restore...
sensitive-blue
sensitive-blue2/10/2025

WAL changes without polling?

Is it possible to subscribe to the WAL change stream with a websockets client in cloudflare durable objects?
harsh-harlequin
harsh-harlequin2/10/2025

RLS PostgreSQL with Next Auth?

Can I use Next Auth instead of the providers listed to use RLS?
yappiest-sapphire
yappiest-sapphire2/9/2025

Neon smithery fails to connect to MCP in Cursor

I'm having a nextjs project and trying to execute generated cli command by Smithery which looks like this:
npx -y @smithery/cli@latest run neon --config "{\"neonApiKey\":\"{API_KEY}\"}"
npx -y @smithery/cli@latest run neon --config "{\"neonApiKey\":\"{API_KEY}\"}"
...
extended-salmon
extended-salmon2/7/2025

Local file cache hit rate dropped to 0

Hello, We've been using Neon for a little over a year and have always seen our local file cache hit rate at more than 99%. This past week we observed it drop to 0 and rebuild back to 80% before dropping back to 0 and sustaining. the first time this dropped to 0 was during a deployment when connection count spiked however the second time we saw it drop to 0 was when the connection count dropped to 0
No description
extended-salmon
extended-salmon2/6/2025

fetching data on the client (like supabase)

what's the "best practice" for fetching data that needs to be on the client? i'm looking at migrating from supabase, so all of the data fetching that i have right now would need to change completely - i have a lot of data fetching on the client with swr hooks + usequeries fetching data from supabase, so i'm thinking if this is the right approach to go with in the future or no as in is the supabase approach (fetching from client) "better" and transferrable to neon in any way? with rls setup (which i have) it seems like it should be fine but i don't know or should i migrate to fetching data from the server via actions etc? would require me to rewrite pretty much everything to swr / tanstack query, but is it overall the "better" approach long term? i'm kind of conflicted here since normally fetching db on the client is a nono but with RLS it seems.. more acceptable?...
correct-apricot
correct-apricot2/6/2025

Is the paid plan per project or per account?

We have a use case in our startup that would require around 100 database instances. Supabase require us to pay $25 per project neon showed that $19 per month gives 100 projects. So does that mean if we pay $19 per month I get 100 db instances?
adverse-sapphire
adverse-sapphire2/5/2025

Too much storage used?

Hey guys! I'm not very experienced with coding but I have a project going and it's just a simple 1 page website with an admin panel, almost not content at all. The actual databse is only 60mbs but it's using 0.73GB and I had to get on the premium plan. I'm worried that at this rate I won't be able to even fit in the 10GB plan with such a simple website once I added content to it. Is this normal? I can't even see how I could launch more than 1 project on this storage....
crude-lavender
crude-lavender2/4/2025

NextJS shows a successful commit to the table but the commit is not in the table.

I have project that receives POST requests and saves body in the NEON table (I initiated the DB with NextJS Postgre). Most of the time this is successful but there are instances when it is not successful. The logs on vercel show that the connection to the Neon Db was successful but when you check the table, you find that the commit was not made. The rate of this failure has increased over the last 2 - 3 weeks. What could be issue ?
multiple-amethyst
multiple-amethyst2/4/2025

PrismaClientInitializationError: Prisma Client could not locate the Query Engine

On Vercel + Neon, I have tried all 1000 different solutions across vercel boards, prisma issues, etc. I can't get anything to work CONSISTENTLY. I had one deploy that worked but the rest have not. I can ls the directory and see that there are query engine files generated to the folder that it says they are not. Has anyone solved this issue? I've spent days on this now....
multiple-amethyst
multiple-amethyst2/4/2025

How can I connect one DB to multiple vercel projects?

Neon seems to impose a 1-1 mapping between vercel projects and neon DBs. How can I connect one DB to multiple vercel projects? We have one database but 3x projects in Vercel that all need to use it for preview branches and production. As soon as I connect one project, it disconnects another....
No description