{"id":28762806,"url":"https://github.com/learnwithfair/postgresql","last_synced_at":"2026-01-30T21:38:22.511Z","repository":{"id":299339408,"uuid":"1002699258","full_name":"learnwithfair/PostgreSQL","owner":"learnwithfair","description":"PostgreSQL Installation Guide (Windows)","archived":false,"fork":false,"pushed_at":"2025-06-16T02:15:41.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-16T03:54:14.608Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/learnwithfair.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-16T02:12:12.000Z","updated_at":"2025-06-16T02:17:00.000Z","dependencies_parsed_at":"2025-06-16T03:54:35.255Z","dependency_job_id":"1eb6c5ef-44c1-4caa-bc87-f62305d37043","html_url":"https://github.com/learnwithfair/PostgreSQL","commit_stats":null,"previous_names":["learnwithfair/postgresql"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/learnwithfair/PostgreSQL","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/learnwithfair%2FPostgreSQL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/learnwithfair%2FPostgreSQL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/learnwithfair%2FPostgreSQL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/learnwithfair%2FPostgreSQL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/learnwithfair","download_url":"https://codeload.github.com/learnwithfair/PostgreSQL/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/learnwithfair%2FPostgreSQL/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28919758,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T20:25:28.696Z","status":"ssl_error","status_checked_at":"2026-01-30T20:25:13.426Z","response_time":66,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-17T08:40:51.032Z","updated_at":"2026-01-30T21:38:22.504Z","avatar_url":"https://github.com/learnwithfair.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\n[![Youtube][youtube-shield]][youtube-url]\n[![Facebook][facebook-shield]][facebook-url]\n[![Instagram][instagram-shield]][instagram-url]\n[![LinkedIn][linkedin-shield]][linkedin-url]\n\nThanks for visiting my GitHub account!\n\n# PostgreSQL Installation Guide (Windows)\n\n\u003e This guide provides step-by-step instructions to install PostgreSQL on a Windows system, including optional setup for development with Node.js, Prisma, and Next.js.\n\n\n## Step 1: Download PostgreSQL\n\n1. Visit the official PostgreSQL download page:  \n   👉 https://www.postgresql.org/download/windows/\n\n2. Click on **\"Download the installer\"** by EDB.\n\n3. Download the latest version suitable for your system.\n\n---\n\n## Step 2: Run the Installer\n\n1. Run the downloaded `.exe` file.\n2. Click **Next** through the setup screens.\n3. Leave the default components selected:\n   - PostgreSQL Server\n   - pgAdmin\n   - Stack Builder (optional)\n4. Choose the installation directory or leave it default.\n\n---\n\n## Step 3: Set Superuser Password\n\n- Set a strong password for the default PostgreSQL user: `postgres`.\n- **IMPORTANT:** Save this password securely. You'll need it to access the database.\n\n---\n\n## Step 4: Choose Port Number\n\n- Default is `5432`. You can leave it as is unless you're running multiple databases.\n\n---\n\n## Step 5: Set Locale and Install\n\n1. Leave the locale to default or set according to your region.\n2. Click **Next** and then **Install**.\n3. Wait until installation is complete.\n\n---\n\n## Step 6: Add PostgreSQL to System PATH\n\n1. Navigate to:\n\n   ```\n   C:\\Program Files\\PostgreSQL\\\u003cversion\u003e\\bin\n   ```\n\n2. Copy the path.\n\n3. Add it to your Windows **Environment Variables**:\n   - Open Start → type **\"Environment Variables\"**\n   - Click **Environment Variables...**\n   - Under **System variables**, find `Path` → Click **Edit** → **New**\n   - Paste the path, then click **OK**\n\n---\n\n## Step 7: Verify Installation\n\n1. Open **Command Prompt** and run:\n\n   ```bash\n   psql -U postgres\n   ```\n\n2. Enter the password you set earlier.\n\n3. If successful, you’ll see:\n\n   ```\n   postgres=#\n   ```\n\n4. Exit by typing:\n   ```sql\n   \\q\n   ```\n\n---\n\n## Optional: Fix Console Encoding Warning\n\nIf you see this warning:\n\n```\nWARNING: Console code page (850) differs from Windows code page (1252)\n```\n\nRun this before `psql`:\n\n```bash\nchcp 1252\n```\n\n---\n\n## Stack Builder (Optional)\n\nAfter installation, you may run **Stack Builder** to install:\n\n- **PostGIS**: For geospatial support\n- **pgAdmin plugins**: For extended GUI features\n- **pgAgent**: For scheduling jobs\n- **ODBC/JDBC Drivers**: For external application connectivity\n\n\u003e ⚠️ You **don’t need Stack Builder** for standard web development with PostgreSQL and Node.js.\n\n---\n\n## Use with Next.js and Prisma (Bonus)\n\nInstall Prisma:\n\n```bash\nnpm install prisma @prisma/client\nnpx prisma init\n```\n\nSet your `.env`:\n\n```env\nDATABASE_URL=\"postgresql://postgres:\u003cyour-password\u003e@localhost:5432/\u003cyour-db-name\u003e\"\n```\n\nMigrate your schema:\n\n```bash\nnpx prisma migrate dev --name init\nnpx prisma generate\n```\n\n---\n\n## You're Ready!\n\nPostgreSQL is now installed and ready to use for local development.\n\n---\n\n## Resources\n\n- Official docs: https://www.postgresql.org/docs/\n- Prisma: https://www.prisma.io/docs\n- Next.js: https://nextjs.org/docs\n\n## Follow Me\n\n[\u003cimg src='https://cdn.jsdelivr.net/npm/simple-icons@3.0.1/icons/github.svg' alt='github' height='40'\u003e](https://github.com/learnwithfair) [\u003cimg src='https://cdn.jsdelivr.net/npm/simple-icons@3.0.1/icons/facebook.svg' alt='facebook' height='40'\u003e](https://www.facebook.com/learnwithfair/) [\u003cimg src='https://cdn.jsdelivr.net/npm/simple-icons@3.0.1/icons/instagram.svg' alt='instagram' height='40'\u003e](https://www.instagram.com/learnwithfair/) [\u003cimg src='https://cdn.jsdelivr.net/npm/simple-icons@3.0.1/icons/twitter.svg' alt='twitter' height='40'\u003e](https://www.twiter.com/learnwithfair/) [\u003cimg src='https://cdn.jsdelivr.net/npm/simple-icons@3.0.1/icons/youtube.svg' alt='YouTube' height='40'\u003e](https://www.youtube.com/@learnwithfair)\n\n\u003c!-- MARKDOWN LINKS \u0026 IMAGES --\u003e\n\n[youtube-shield]: https://img.shields.io/badge/-Youtube-black.svg?style=flat-square\u0026logo=youtube\u0026color=555\u0026logoColor=white\n[youtube-url]: https://youtube.com/@learnwithfair\n[facebook-shield]: https://img.shields.io/badge/-Facebook-black.svg?style=flat-square\u0026logo=facebook\u0026color=555\u0026logoColor=white\n[facebook-url]: https://facebook.com/learnwithfair\n[instagram-shield]: https://img.shields.io/badge/-Instagram-black.svg?style=flat-square\u0026logo=instagram\u0026color=555\u0026logoColor=white\n[instagram-url]: https://instagram.com/learnwithfair\n[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=flat-square\u0026logo=linkedin\u0026colorB=555\n[linkedin-url]: https://www.linkedin.com/in/rahatul-rabbi/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flearnwithfair%2Fpostgresql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flearnwithfair%2Fpostgresql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flearnwithfair%2Fpostgresql/lists"}